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; } } }