Clean up and simplify some code

This commit is contained in:
Schuyler Cebulskie
2016-10-17 00:02:48 -04:00
parent e04dbbdb82
commit 62b93659e6
5 changed files with 8 additions and 8 deletions

View File

@@ -248,7 +248,7 @@ class GuildMember {
*/
hasPermissions(permissions, explicit = false) {
if (!explicit && this.user.id === this.guild.ownerID) return true;
return permissions.map(p => this.hasPermission(p, explicit)).every(v => v);
return permissions.every(p => this.hasPermission(p, explicit));
}
/**