Skip to content

Commit

Permalink
fix(Message): bug in #suppressEmbeds due to #5612 (#5644)
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed May 26, 2021
1 parent 3589e0f commit 840ad0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Message.js
Expand Up @@ -494,7 +494,7 @@ class Message extends Base {
* .catch(console.error);
*/
edit(content, options) {
options = content instanceof APIMessage ? content : APIMessage.create(this.channel, content, options);
options = content instanceof APIMessage ? content : APIMessage.create(this, content, options);
return this.channel.messages.edit(this.id, options);
}

Expand Down

0 comments on commit 840ad0a

Please sign in to comment.