Fix error when receiving a reply to a thread that has had its channel deleted

master
Dragory 2020-06-05 17:06:15 +03:00
parent 1382c639a9
commit 1538b25ee5
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ class Thread {
// Show user reply in the inbox thread // Show user reply in the inbox thread
const inboxContent = this._formatUserReplyThreadMessage(msg.author, msg.content, msg.embeds, threadFormattedAttachments, null); const inboxContent = this._formatUserReplyThreadMessage(msg.author, msg.content, msg.embeds, threadFormattedAttachments, null);
const inboxMessage = await this._postToThreadChannel(inboxContent, attachmentFiles); const inboxMessage = await this._postToThreadChannel(inboxContent, attachmentFiles);
await this._updateThreadMessage(threadMessage.id, { inbox_message_id: inboxMessage.id }); if (inboxMessage) await this._updateThreadMessage(threadMessage.id, { inbox_message_id: inboxMessage.id });
// Interrupt scheduled closing, if in progress // Interrupt scheduled closing, if in progress
if (this.scheduled_close_at) { if (this.scheduled_close_at) {