mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Make GuildMember.hasPermissions check owner
This commit is contained in:
parent
b88498271c
commit
ebaaa65741
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue