mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Fix #677
This commit is contained in:
@@ -174,6 +174,7 @@ class GuildMember {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
hasPermission(permission, explicit = false) {
|
||||
if (this.guild.owner.id === this.user.id) return true;
|
||||
return this.roles.some(r => r.hasPermission(permission, explicit));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user