From 51df75e641877b8d87ec7fd34924425ac4a6a4de Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 16 Aug 2020 18:42:19 +0300 Subject: [PATCH] Set dm_channel_id directly from the message object Allows us to set the channel id correctly for non-DM messages, such as mentions that create a thread with createThreadOnMention where the initial message is forwarded to the thread. --- src/data/Thread.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/Thread.js b/src/data/Thread.js index ffedd55..4d91564 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -310,6 +310,7 @@ class Thread { body: messageContent, is_anonymous: 0, dm_message_id: msg.id, + dm_channel_id: msg.channel.id, attachments, small_attachments: smallAttachments, });