Remove role check

This commit is contained in:
Michael 2024-12-23 22:08:22 -06:00
parent 6b9f020922
commit 5be5763ed0
Signed by: TheShadowEevee
GPG key ID: 7A8AA92B3BAFAB75

View file

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