mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 22:21:17 +00:00
fix(ApiMessage): prevent mutation of client options
This commit is contained in:
parent
88625a5b7d
commit
fbb1c93454
1 changed files with 1 additions and 0 deletions
|
|
@ -171,6 +171,7 @@ class APIMessage {
|
|||
: this.options.allowedMentions;
|
||||
|
||||
if (allowedMentions) {
|
||||
allowedMentions = Util.cloneObject(allowedMentions);
|
||||
allowedMentions.replied_user = allowedMentions.repliedUser;
|
||||
delete allowedMentions.repliedUser;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue