From ce01f5d290459c42d8a9e080a6c2410764f67621 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 15 Oct 2019 23:41:29 +0100 Subject: [PATCH] Stopped command from triggering if command is disabled --- src/events/messageCreate.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index c6ff516..fd06dee 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -27,6 +27,7 @@ export default class { } } if (!hasRolePerms && !hasUserPerms) return; + if (!resolved.enabled) { message.channel.createMessage(`***${this.client.stores.emojis.error} This command has been disabled***`); return; } const args: string[] = noPrefix.slice(1); resolved.run(message, args); }