From ebaaa65741093109ce6808bdd4d22b1b6fa2e5b2 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Sun, 11 Sep 2016 23:58:01 -0400 Subject: [PATCH] Make GuildMember.hasPermissions check owner --- src/structures/GuildMember.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index 84a851126..b8f5eff0d 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -196,6 +196,7 @@ class GuildMember { * @returns {boolean} */ hasPermissions(permissions, explicit = false) { + if (this.guild.owner.id === this.user.id) return true; return permissions.map(p => this.hasPermission(p, explicit)).every(v => v); }