Skip to content

Commit

Permalink
Use enum for allowedMentions
Browse files Browse the repository at this point in the history
  • Loading branch information
TAEMBO committed May 10, 2024
1 parent 0ae9427 commit bb60891
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
AllowedMentionsTypes,
ApplicationCommandOptionType,
Client,
Collection,
Expand Down Expand Up @@ -60,7 +61,14 @@ export default class TClient extends Client<true> {
GuildEmojiManager: 0,
GuildMessageManager: 500,
}),
allowedMentions: { repliedUser: false, parse: ["users", "roles", "everyone"] }
allowedMentions: {
repliedUser: false,
parse: [
AllowedMentionsTypes.User,
AllowedMentionsTypes.Role,
AllowedMentionsTypes.Everyone
]
}
});
}

Expand Down

0 comments on commit bb60891

Please sign in to comment.