mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +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;
|
: this.options.allowedMentions;
|
||||||
|
|
||||||
if (allowedMentions) {
|
if (allowedMentions) {
|
||||||
|
allowedMentions = Util.cloneObject(allowedMentions);
|
||||||
allowedMentions.replied_user = allowedMentions.repliedUser;
|
allowedMentions.replied_user = allowedMentions.repliedUser;
|
||||||
delete allowedMentions.repliedUser;
|
delete allowedMentions.repliedUser;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue