feat(arabot): add check for outreach coordinator only for event create

This commit is contained in:
smyalygames 2023-03-01 14:13:26 +00:00
parent 1ee75d684f
commit cd3c209ede

View File

@ -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!',