fixed permissions

This commit is contained in:
mmacierzanka committed 2021-06-20 17:09:16 +02:00
1 parent 16b5548d9b
commit 73d758822e
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ class Command {
}
async start(message?: Message, cmdArguments?: string[]) {
const memberPermissions : Readonly<Permissions> = 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);