ci(arabot): change plus commands to allow mods to run it

This commit is contained in:
smyalygames 2023-04-01 23:27:04 +01:00
parent 26fe5a79eb
commit 92b6c2da38

View File

@ -29,7 +29,7 @@ export class PlusCommand extends Command {
name: 'plus', name: 'plus',
aliases: ['+'], aliases: ['+'],
description: 'Give/remove the plus role', description: 'Give/remove the plus role',
preconditions: ['CoordinatorOnly'], preconditions: [['CoordinatorOnly', 'ModOnly']],
}); });
} }
@ -60,12 +60,11 @@ export class PlusCommand extends Command {
await interaction.reply({ await interaction.reply({
content: 'Error fetching guild!', content: 'Error fetching guild!',
ephemeral: true, ephemeral: true,
fetchReply: true,
}); });
return; return;
} }
await interaction.deferReply({ ephemeral: true }); await interaction.deferReply();
const info = await this.managePlus(user, mod, guild); const info = await this.managePlus(user, mod, guild);