mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-03 15:49:50 +01:00
feat(arabot): add check for outreach coordinator only for event create
This commit is contained in:
parent
1ee75d684f
commit
cd3c209ede
@ -139,6 +139,14 @@ export class OutreachCommand extends Subcommand {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mod.roles.cache.has(IDs.roles.staff.outreachCoordinator)) {
|
||||||
|
await interaction.reply({
|
||||||
|
content: 'You need to be an Outreach Coordinator to run this command!',
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (await checkActiveEvent()) {
|
if (await checkActiveEvent()) {
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content: 'There is already an active event!',
|
content: 'There is already an active event!',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user