From aed7fa9379ded1b3ddddba245d96b2bdc099c62f Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:31:00 +0400 Subject: [PATCH] [FEATURE]: add isGeneratedByWebhook while fetching msgs --- src/functions/fetchMessages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/fetchMessages.ts b/src/functions/fetchMessages.ts index d5485207..49804d19 100644 --- a/src/functions/fetchMessages.ts +++ b/src/functions/fetchMessages.ts @@ -66,7 +66,7 @@ async function getNeedDataFromMessage(message: Message, threadInfo?: threadInfo) channelName: threadInfo?.channelName ? threadInfo?.channelName : '', threadId: threadInfo?.threadId ? threadInfo?.threadId : null, threadName: threadInfo?.threadName ? threadInfo?.threadName : null, - // isGeneratedByWebhook: message.webhookId ? true : false + isGeneratedByWebhook: message.webhookId ? true : false }; } else { return { @@ -83,7 +83,7 @@ async function getNeedDataFromMessage(message: Message, threadInfo?: threadInfo) channelName: message.channel instanceof TextChannel ? message.channel.name : null, threadId: null, threadName: null, - // isGeneratedByWebhook: message.webhookId ? true : false + isGeneratedByWebhook: message.webhookId ? true : false }; } }