Skip to content

Commit

Permalink
Fix discord contests role check
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-panhead committed Jan 16, 2025
1 parent 573d12c commit 3ebd5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/a_activity/discord-contests.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class DiscordContests extends Command {
return;
}

if (Object.values(initBotInfo.roleIDs).includes(roleId.id) || Array(initBotInfo.verification.roles).find((r) => r.roleId === roleId.id)) {
if (Object.values(initBotInfo.roleIDs).includes(roleId.id) || initBotInfo.verification.roles.some((r) => r.roleId === roleId.id)) {
interaction.reply({ content: 'This role cannot be used! Please pick a role that is specifically for Discord Contest notifications!', ephemeral: true });
return;
}
Expand Down

0 comments on commit 3ebd5ab

Please sign in to comment.