From df2333ac828322f66578587a206a97e3832f235f Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Mon, 6 Mar 2017 19:38:58 -0500 Subject: [PATCH] Fix Role#hasPermission --- src/structures/Role.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index 031a7a71d..7b2d8d54f 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -157,7 +157,7 @@ class Role { * } */ hasPermission(permission, explicit) { - return this.client.resolver.hasPermission(this.permissions, permission, explicit); + return new Permissions(this.permissions).has(permission, !explicit); } /** @@ -167,7 +167,7 @@ class Role { * @returns {boolean} */ hasPermissions(permissions, explicit = false) { - return permissions.every(p => this.hasPermission(p, explicit)); + return new Permissions(this.permissions).has(permissions, !explicit); } /**