mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 82841c6ce1
This commit is contained in:
parent
fc80d43a70
commit
2fcfa7a35c
2 changed files with 2 additions and 2 deletions
|
|
@ -4990,7 +4990,7 @@ class GuildMember extends Base {
|
||||||
if (typeof checkAdmin === 'undefined') checkAdmin = !explicit;
|
if (typeof checkAdmin === 'undefined') checkAdmin = !explicit;
|
||||||
if (typeof checkOwner === 'undefined') checkOwner = !explicit;
|
if (typeof checkOwner === 'undefined') checkOwner = !explicit;
|
||||||
if (checkOwner && this.user.id === this.guild.ownerID) return true;
|
if (checkOwner && this.user.id === this.guild.ownerID) return true;
|
||||||
return this.roles.some(r => r.hasPermission(permission, undefined, checkAdmin));
|
return this.roles.some(r => r.permissions.has(permission, undefined, checkAdmin));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue