mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 16b5de5d52
This commit is contained in:
parent
9be9dd982f
commit
b56c62c4dd
2 changed files with 3 additions and 3 deletions
|
|
@ -3063,7 +3063,7 @@ class GuildMember extends Base {
|
||||||
get manageable() {
|
get manageable() {
|
||||||
if (this.user.id === this.guild.ownerID) return false;
|
if (this.user.id === this.guild.ownerID) return false;
|
||||||
if (this.user.id === this.client.user.id) return false;
|
if (this.user.id === this.client.user.id) return false;
|
||||||
return this.guild.me.highestRole.comparePositionTo(this.highestRole) > 0;
|
return this.guild.me.roles.highest.comparePositionTo(this.roles.highest) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -3388,7 +3388,7 @@ class Role extends Base {
|
||||||
if (this.managed) return false;
|
if (this.managed) return false;
|
||||||
const clientMember = this.guild.member(this.client.user);
|
const clientMember = this.guild.member(this.client.user);
|
||||||
if (!clientMember.permissions.has(Permissions.FLAGS.MANAGE_ROLES)) return false;
|
if (!clientMember.permissions.has(Permissions.FLAGS.MANAGE_ROLES)) return false;
|
||||||
return clientMember.highestRole.comparePositionTo(this) > 0;
|
return clientMember.roles.highest.comparePositionTo(this) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
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