fix(ApiMessage): prevent mutation of client options

This commit is contained in:
monbrey 2020-11-27 12:43:26 +11:00
parent 88625a5b7d
commit fbb1c93454

View file

@ -171,6 +171,7 @@ class APIMessage {
: this.options.allowedMentions;
if (allowedMentions) {
allowedMentions = Util.cloneObject(allowedMentions);
allowedMentions.replied_user = allowedMentions.repliedUser;
delete allowedMentions.repliedUser;
}