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.
cshd
Dragory 2020-08-16 18:42:19 +03:00
parent c7bf059220
commit 51df75e641
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 0 deletions

View File

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