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();
|
await interaction.channel.fetchStarterMessage();
|
||||||
const emojiCheck =
|
const emojiCheck =
|
||||||
interaction.options.getString('emoji') ?? 'gh_green_square';
|
interaction.options.getString('emoji') ?? 'gh_green_square';
|
||||||
const roleCheck =
|
|
||||||
interaction.options.getString('role') ?? '1012751663322382438';
|
|
||||||
const startDate = new Date(
|
const startDate = new Date(
|
||||||
interaction.options.getString('start-date') ??
|
interaction.options.getString('start-date') ??
|
||||||
threadStarterMessage.createdTimestamp,
|
threadStarterMessage.createdTimestamp,
|
||||||
|
@ -145,19 +143,11 @@ module.exports = {
|
||||||
else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') {
|
else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') {
|
||||||
for (const reaction of message.reactions.cache.values()) {
|
for (const reaction of message.reactions.cache.values()) {
|
||||||
const emojiName = reaction._emoji.name;
|
const emojiName = reaction._emoji.name;
|
||||||
const reactionUsers = await reaction.users.fetch();
|
|
||||||
|
|
||||||
if (emojiName === emojiCheck) {
|
if (emojiName === emojiCheck) {
|
||||||
for (const [userId] of reactionUsers) {
|
dateVerified = true;
|
||||||
const member = await interaction.guild.members.fetch(
|
verifyReason = 'Reaction';
|
||||||
userId,
|
break;
|
||||||
);
|
|
||||||
if (member.roles.cache.has(roleCheck)) {
|
|
||||||
dateVerified = true;
|
|
||||||
verifyReason = 'Reaction';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue