Skip to content

Commit

Permalink
Fix CommandInteraction and rawWS deep reference editing (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramex authored Nov 14, 2021
1 parent 0ae09f1 commit e8b819a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/CommandInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CommandInteraction extends Interaction {
id: info.channel_id
};

this.data = info.data;
this.data = JSON.parse(JSON.stringify(info.data));

if(info.data.resolved !== undefined) {
//Users
Expand Down

0 comments on commit e8b819a

Please sign in to comment.