fix(Message): bug in #suppressEmbeds due to #5612 (#5644)

This commit is contained in:
Shubham Parihar
2021-05-26 16:39:35 +05:30
committed by GitHub
parent 3589e0f442
commit 840ad0a35a

View File

@@ -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);
}