From 840ad0a35a344a19c5bb84c421f80802fb186d0b Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Wed, 26 May 2021 16:39:35 +0530 Subject: [PATCH] fix(Message): bug in #suppressEmbeds due to #5612 (#5644) --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 90c43d602..ffd8715f5 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -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); }