Skip to content

Commit

Permalink
[FEATURE]: add isGeneratedByWebhook while fetching msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Sep 20, 2023
1 parent 51645c6 commit aed7fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/fetchMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
};
}
}
Expand Down

0 comments on commit aed7fa9

Please sign in to comment.