mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Webpack build for branch master: 25096047f1
This commit is contained in:
parent
e383d34da8
commit
5b0d61c31b
2 changed files with 3 additions and 3 deletions
|
|
@ -5350,13 +5350,13 @@ class GuildMember {
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get permissions() {
|
get permissions() {
|
||||||
if (this.user.id === this.guild.ownerID) return new Permissions(this, Permissions.ALL);
|
if (this.user.id === this.guild.ownerID) return new Permissions(Permissions.ALL);
|
||||||
|
|
||||||
let permissions = 0;
|
let permissions = 0;
|
||||||
const roles = this.roles;
|
const roles = this.roles;
|
||||||
for (const role of roles.values()) permissions |= role.permissions;
|
for (const role of roles.values()) permissions |= role.permissions;
|
||||||
|
|
||||||
return new Permissions(this, permissions);
|
return new Permissions(permissions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
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