mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-03 03:19:49 +01: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',
|
name: 'vegcurious',
|
||||||
aliases: ['veg', 'vegancurious'],
|
aliases: ['veg', 'vegancurious'],
|
||||||
description: 'Gives the veg curious role for vegans only',
|
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
|
// 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)) {
|
&& !mentorMember.roles.cache.has(IDs.roles.staff.mentorCoordinator)) {
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content: `${user} is vegan, only ${mentorCoordinator.name} can run this!`,
|
content: `${user} is vegan, only ${mentorCoordinator.name} can run this!`,
|
||||||
@ -161,7 +161,7 @@ class VegCuriousCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Checks if the user is vegan
|
// 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)) {
|
&& !mentor.roles.cache.has(IDs.roles.staff.mentorCoordinator)) {
|
||||||
await message.reply({
|
await message.reply({
|
||||||
content: `${user} is vegan, only ${mentorCoordinator.name} can run this!`,
|
content: `${user} is vegan, only ${mentorCoordinator.name} can run this!`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user