From 274ae9935e80cfc66f6b4ee9f4c900134bcd0435 Mon Sep 17 00:00:00 2001 From: monbrey Date: Tue, 17 Nov 2020 08:29:18 +1100 Subject: [PATCH] fix: dont pass channel_id to API when replying --- src/structures/APIMessage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structures/APIMessage.js b/src/structures/APIMessage.js index db257bdb..ee2fe36e 100644 --- a/src/structures/APIMessage.js +++ b/src/structures/APIMessage.js @@ -174,8 +174,7 @@ class APIMessage { if (typeof this.options.replyTo !== 'undefined') { const message_id = this.target.messages.resolveID(this.options.replyTo); if (message_id) { - const channel_id = typeof this.options.replyTo === 'string' ? this.target.id : this.options.replyTo.channel.id; - message_reference = { message_id, channel_id }; + message_reference = { message_id }; } }