mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +00:00
Fix #677
This commit is contained in:
parent
8f645267a9
commit
3e39861534
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue