From e0750f7787e826f0233b170bc825dc8879728f26 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 22:38:02 -0400 Subject: [PATCH] fix command handler issue --- src/events/messageCreate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index fc18b79..5f5e4e1 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -28,12 +28,12 @@ export default class { if (resolved.permissions.roles) { for (const role of resolved.permissions.roles) { if (message.member && message.member.roles.includes(role)) { - this.client.signale.debug(message.member.roles.includes(role)); + // this.client.signale.debug(message.member.roles.includes(role)); hasRolePerms = true; break; } } } - if (!hasRolePerms && !hasUserPerms) return; + 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);