Make GuildMember.hasPermissions check owner

This commit is contained in:
Schuyler Cebulskie
2016-09-11 23:58:01 -04:00
parent b88498271c
commit ebaaa65741

View File

@@ -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);
}