From cd3c209ede172a67bb6c7ce581ec8e7b51921e04 Mon Sep 17 00:00:00 2001 From: smyalygames Date: Wed, 1 Mar 2023 14:13:26 +0000 Subject: [PATCH] feat(arabot): add check for outreach coordinator only for event create --- src/commands/outreach/outreach.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commands/outreach/outreach.ts b/src/commands/outreach/outreach.ts index 495daf6..6d46d09 100644 --- a/src/commands/outreach/outreach.ts +++ b/src/commands/outreach/outreach.ts @@ -139,6 +139,14 @@ export class OutreachCommand extends Subcommand { 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()) { await interaction.reply({ content: 'There is already an active event!',