mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 10:34:16 +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',
|
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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user