Skip to content

Commit

Permalink
🐛 FIX: add command filter for first response check
Browse files Browse the repository at this point in the history
  • Loading branch information
warengonzaga authored May 5, 2023
1 parent 201d303 commit c39d4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit c39d4c3

Please sign in to comment.