mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-09-15 11:22:20 +02:00
fix(arabot): fix check if user is vegan
This commit is contained in:
parent
1ddda61bd0
commit
3771c037a6
@ -28,7 +28,7 @@ class VegCuriousCommand extends Command {
|
||||
name: 'vegcurious',
|
||||
aliases: ['veg', 'vegancurious'],
|
||||
description: 'Gives the veg curious role for vegans only',
|
||||
preconditions: ['MentorOnly'],
|
||||
preconditions: [['MentorOnly', 'VerifierOnly', 'ModOnly']],
|
||||
});
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ class VegCuriousCommand extends Command {
|
||||
}
|
||||
|
||||
// Checks if the user is vegan
|
||||
if (!guildMember.roles.cache.has(IDs.roles.vegan.vegan)
|
||||
if (guildMember.roles.cache.has(IDs.roles.vegan.vegan)
|
||||
&& !mentorMember.roles.cache.has(IDs.roles.staff.mentorCoordinator)) {
|
||||
await interaction.reply({
|
||||
content: `${user} is vegan, only ${mentorCoordinator.name} can run this!`,
|
||||
@ -161,7 +161,7 @@ class VegCuriousCommand extends Command {
|
||||
}
|
||||
|
||||
// Checks if the user is vegan
|
||||
if (!user.roles.cache.has(IDs.roles.vegan.vegan)
|
||||
if (user.roles.cache.has(IDs.roles.vegan.vegan)
|
||||
&& !mentor.roles.cache.has(IDs.roles.staff.mentorCoordinator)) {
|
||||
await message.reply({
|
||||
content: `${user} is vegan, only ${mentorCoordinator.name} can run this!`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user