From 73d758822e13fee2a6110ef2ed65b50e035baead Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Sun, 20 Jun 2021 17:09:16 +0200 Subject: [PATCH] fixed permissions --- src/Commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands.ts b/src/Commands.ts index 60404f6..2856847 100644 --- a/src/Commands.ts +++ b/src/Commands.ts @@ -53,7 +53,7 @@ class Command { } async start(message?: Message, cmdArguments?: string[]) { const memberPermissions : Readonly = message?.member?.permissions || new Permissions(0); - if(memberPermissions.any(this.permissions, true)) { + if(memberPermissions.has(this.permissions, true)) { const fnResult = await this.function(message, cmdArguments); if(typeof fnResult == 'string') { await message?.reply(fnResult);