Remove role check
This commit is contained in:
parent
6b9f020922
commit
5be5763ed0
1 changed files with 3 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue