From 5ee85f3b56add150d329711b8ceeb542acb65061 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 11 May 2022 14:14:38 +0300 Subject: [PATCH] bugfix --- src/structure/client/wrappers/MemberWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/client/wrappers/MemberWrapper.js b/src/structure/client/wrappers/MemberWrapper.js index 7babe77..6d24586 100644 --- a/src/structure/client/wrappers/MemberWrapper.js +++ b/src/structure/client/wrappers/MemberWrapper.js @@ -35,7 +35,7 @@ class MemberWrapper { } async isAdmin() { - return (await this.userWrapper()).developer || this.permissions.missing(['ADMINISTRATOR', 'MANAGE_GUILD']).length === 2; + return (await this.userWrapper()).developer || this.permissions.any(['ADMINISTRATOR', 'MANAGE_GUILD']); } timeout(...opts) {