mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Make GuildMember.hasPermissions check owner
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user