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',
|
name: 'activist',
|
||||||
aliases: ['a'],
|
aliases: ['a'],
|
||||||
description: 'Gives the activist role',
|
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
|
// Checks if the user is an activist
|
||||||
if (guildMember.roles.cache.has(IDs.roles.vegan.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.verifierCoordinator)
|
||||||
&& !modMember.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
|| modMember.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content: `${user} is an activist, only ${verCoordinator.name} can run this!`,
|
content: `${user} is an activist, only ${verCoordinator.name} can run this!`,
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
@ -167,8 +167,8 @@ class ActivistCommand extends Command {
|
|||||||
|
|
||||||
// Checks if the user is an activist
|
// Checks if the user is an activist
|
||||||
if (user.roles.cache.has(IDs.roles.vegan.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.verifierCoordinator)
|
||||||
&& !mod.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
|| mod.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||||
await message.reply({
|
await message.reply({
|
||||||
content: `${user} is an activist, only ${verCoordinator.name} can run this!`,
|
content: `${user} is an activist, only ${verCoordinator.name} can run this!`,
|
||||||
});
|
});
|
||||||
|
@ -28,7 +28,7 @@ class VeganCommand extends Command {
|
|||||||
name: 'vegan',
|
name: 'vegan',
|
||||||
aliases: ['v'],
|
aliases: ['v'],
|
||||||
description: 'Gives the vegan role',
|
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
|
// Checks if the user is vegan
|
||||||
if (guildMember.roles.cache.has(IDs.roles.vegan.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.verifierCoordinator)
|
||||||
&& !modMember.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
|| modMember.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content: `${user} is vegan, only ${verCoordinator.name} can run this!`,
|
content: `${user} is vegan, only ${verCoordinator.name} can run this!`,
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
@ -160,8 +160,8 @@ class VeganCommand 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)
|
||||||
&& !mod.roles.cache.has(IDs.roles.staff.mentorCoordinator)
|
|| !(mod.roles.cache.has(IDs.roles.staff.verifierCoordinator)
|
||||||
&& !mod.roles.cache.has(IDs.roles.staff.modCoordinator)) {
|
|| mod.roles.cache.has(IDs.roles.staff.modCoordinator))) {
|
||||||
await message.reply({
|
await message.reply({
|
||||||
content: `${user} is vegan, only ${verCoordinator.name} can run this!`,
|
content: `${user} is vegan, only ${verCoordinator.name} can run this!`,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user