mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 08:34:15 +02:00
ci(arabot): change plus commands to allow mods to run it
This commit is contained in:
parent
26fe5a79eb
commit
92b6c2da38
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user