From c39d4c34b3e0e77976376b6d2799010b44e2dffb Mon Sep 17 00:00:00 2001 From: Waren Gonzaga Date: Fri, 5 May 2023 02:13:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20add=20command=20filter=20?= =?UTF-8?q?for=20first=20response=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.js b/src/bot.js index efe51a9..6a3e5e4 100644 --- a/src/bot.js +++ b/src/bot.js @@ -159,7 +159,7 @@ client.on('messageCreate', async (message) => { * Logic to capture the first response from the forum post */ // check the the message if it is in the thread and from the support role - if (message.channel.type === ChannelType.PublicThread && member.roles.cache.hasAny(...roleIDs)) { + if (message.channel.type === ChannelType.PublicThread && member.roles.cache.hasAny(...roleIDs) && !message.content.startsWith(config.command_prefix)) { // get details about the thread and the message const postId = message.channel.id; const fetchMessages = await message.channel.messages.fetch({ after: postId });