mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-21 20:08:51 +01:00
ci(arabot): change plus commands to allow mods to run it
This commit is contained in:
@@ -29,7 +29,7 @@ export class PlusCommand extends Command {
|
||||
name: 'plus',
|
||||
aliases: ['+'],
|
||||
description: 'Give/remove the plus role',
|
||||
preconditions: ['CoordinatorOnly'],
|
||||
preconditions: [['CoordinatorOnly', 'ModOnly']],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -60,12 +60,11 @@ export class PlusCommand extends Command {
|
||||
await interaction.reply({
|
||||
content: 'Error fetching guild!',
|
||||
ephemeral: true,
|
||||
fetchReply: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
await interaction.deferReply();
|
||||
|
||||
const info = await this.managePlus(user, mod, guild);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user