From 5be5763ed0d1c70519a2efbd7eaa62ae235cd33e Mon Sep 17 00:00:00 2001 From: TheShadowEevee Date: Mon, 23 Dec 2024 22:08:22 -0600 Subject: [PATCH] Remove role check --- commands/commit-count.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/commands/commit-count.js b/commands/commit-count.js index c954862..c5b80b6 100644 --- a/commands/commit-count.js +++ b/commands/commit-count.js @@ -46,8 +46,6 @@ module.exports = { await interaction.channel.fetchStarterMessage(); const emojiCheck = interaction.options.getString('emoji') ?? 'gh_green_square'; - const roleCheck = - interaction.options.getString('role') ?? '1012751663322382438'; const startDate = new Date( interaction.options.getString('start-date') ?? threadStarterMessage.createdTimestamp, @@ -145,19 +143,11 @@ module.exports = { else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') { for (const reaction of message.reactions.cache.values()) { const emojiName = reaction._emoji.name; - const reactionUsers = await reaction.users.fetch(); if (emojiName === emojiCheck) { - for (const [userId] of reactionUsers) { - const member = await interaction.guild.members.fetch( - userId, - ); - if (member.roles.cache.has(roleCheck)) { - dateVerified = true; - verifyReason = 'Reaction'; - break; - } - } + dateVerified = true; + verifyReason = 'Reaction'; + break; } } }