mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 12:44:17 +02:00
fix(arabot): fix permissions for verifier coordinator
This commit is contained in:
parent
09bb3f24f8
commit
0bc49cb8f1
@ -28,7 +28,7 @@ class ActivistCommand extends Command {
|
||||
name: 'activist',
|
||||
aliases: ['a'],
|
||||
description: 'Gives the activist role',
|
||||
preconditions: [['ModCoordinatorOnly', 'VerifierOnly']],
|
||||
preconditions: [['ModCoordinatorOnly', 'VerifierCoordinatorOnly', 'VerifierOnly']],
|
||||
});
|
||||
}
|
||||
|
||||
@ -86,8 +86,8 @@ class ActivistCommand extends Command {
|
||||
|
||||
// Checks if the user is an activist
|
||||
if (guildMember.roles.cache.has(IDs.roles.vegan.activist)
|
||||
&& !modMember.roles.cache.has(IDs.roles.staff.mentorCoordinator)
|
||||
&& !modMember.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
||||
&& !(modMember.roles.cache.has(IDs.roles.staff.verifierCoordinator)
|
||||
|| modMember.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||
await interaction.reply({
|
||||
content: `${user} is an activist, only ${verCoordinator.name} can run this!`,
|
||||
ephemeral: true,
|
||||
@ -167,8 +167,8 @@ class ActivistCommand extends Command {
|
||||
|
||||
// Checks if the user is an activist
|
||||
if (user.roles.cache.has(IDs.roles.vegan.activist)
|
||||
&& !mod.roles.cache.has(IDs.roles.staff.mentorCoordinator)
|
||||
&& !mod.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
||||
&& !(mod.roles.cache.has(IDs.roles.staff.verifierCoordinator)
|
||||
|| mod.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||
await message.reply({
|
||||
content: `${user} is an activist, only ${verCoordinator.name} can run this!`,
|
||||
});
|
||||
|
@ -28,7 +28,7 @@ class VeganCommand extends Command {
|
||||
name: 'vegan',
|
||||
aliases: ['v'],
|
||||
description: 'Gives the vegan role',
|
||||
preconditions: [['ModCoordinatorOnly', 'VerifierOnly']],
|
||||
preconditions: [['ModCoordinatorOnly', 'VerifierCoordinatorOnly', 'VerifierOnly']],
|
||||
});
|
||||
}
|
||||
|
||||
@ -86,8 +86,8 @@ class VeganCommand extends Command {
|
||||
|
||||
// Checks if the user is vegan
|
||||
if (guildMember.roles.cache.has(IDs.roles.vegan.vegan)
|
||||
&& !modMember.roles.cache.has(IDs.roles.staff.mentorCoordinator)
|
||||
&& !modMember.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
||||
&& !(modMember.roles.cache.has(IDs.roles.staff.verifierCoordinator)
|
||||
|| modMember.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||
await interaction.reply({
|
||||
content: `${user} is vegan, only ${verCoordinator.name} can run this!`,
|
||||
ephemeral: true,
|
||||
@ -160,8 +160,8 @@ class VeganCommand extends Command {
|
||||
|
||||
// Checks if the user is vegan
|
||||
if (user.roles.cache.has(IDs.roles.vegan.vegan)
|
||||
&& !mod.roles.cache.has(IDs.roles.staff.mentorCoordinator)
|
||||
&& !mod.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
||||
|| !(mod.roles.cache.has(IDs.roles.staff.verifierCoordinator)
|
||||
|| mod.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||
await message.reply({
|
||||
content: `${user} is vegan, only ${verCoordinator.name} can run this!`,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user