mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(Message): Optional parameter for setting allowed mentions (#11338)
feat: allow empty allowed mentions Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -239,7 +239,7 @@ export class MessageBuilder
|
||||
allowedMentions:
|
||||
| AllowedMentionsBuilder
|
||||
| APIAllowedMentions
|
||||
| ((builder: AllowedMentionsBuilder) => AllowedMentionsBuilder),
|
||||
| ((builder: AllowedMentionsBuilder) => AllowedMentionsBuilder) = new AllowedMentionsBuilder(),
|
||||
): this {
|
||||
this.data.allowed_mentions = resolveBuilder(allowedMentions, AllowedMentionsBuilder);
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user