mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 13:10:42 +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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
hasPermission(permission, explicit = false) {
|
hasPermission(permission, explicit = false) {
|
||||||
|
if (this.guild.owner.id === this.user.id) return true;
|
||||||
return this.roles.some(r => r.hasPermission(permission, explicit));
|
return this.roles.some(r => r.hasPermission(permission, explicit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue