From b87f1c112bedd136529f9cb2e85703ac779073ec Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 22:30:10 -0400 Subject: [PATCH] fix command handler issue --- src/events/messageCreate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index a9669d2..bfa775a 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -19,7 +19,7 @@ export default class { if (!resolved) return; if (resolved.guildOnly && !(message.channel instanceof TextChannel)) return; let hasUserPerms: boolean; - if (resolved.permissions.users) { + if (resolved.permissions.users.length > 0) { hasUserPerms = resolved.permissions.users.includes(message.author.id); } let hasRolePerms: boolean = false;