Skip to content

Commit

Permalink
Dont format allowedMentions because editWebhookMessage does right after
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed Jun 27, 2021
1 parent 4bec30b commit 61ef4d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ class Interaction extends Base {
} else if(content.content === undefined && !content.embeds && content.flags === undefined && content.flags === undefined) {
return Promise.reject(new Error("No content, embeds, components, or flags"));
}
if(content.content !== undefined || content.embed || content.allowedMentions) {
content.allowed_mentions = this._client._formatAllowedMentions(content.allowedMentions);
}
}
return this._client.editWebhookMessage.call(this._client, this.applicationId, this.token, messageId, content);
}
Expand Down

0 comments on commit 61ef4d8

Please sign in to comment.