mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +00:00
Fix derp in GuildMember.kickable/bannable
This commit is contained in:
parent
8945344a3b
commit
a441aaf546
1 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ class GuildMember {
|
||||||
get kickable() {
|
get kickable() {
|
||||||
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;
|
||||||
const clientMember = this.member(this.client.member);
|
const clientMember = this.guild.member(this.client.member);
|
||||||
if (!clientMember.hasPermission(Constants.PermissionFlags.KICK_MEMBERS)) return false;
|
if (!clientMember.hasPermission(Constants.PermissionFlags.KICK_MEMBERS)) return false;
|
||||||
return clientMember.highestRole.position > this.highestRole.positon;
|
return clientMember.highestRole.position > this.highestRole.positon;
|
||||||
}
|
}
|
||||||
|
|
@ -215,7 +215,7 @@ class GuildMember {
|
||||||
get bannable() {
|
get bannable() {
|
||||||
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;
|
||||||
const clientMember = this.member(this.client.member);
|
const clientMember = this.guild.member(this.client.member);
|
||||||
if (!clientMember.hasPermission(Constants.PermissionFlags.BAN_MEMBERS)) return false;
|
if (!clientMember.hasPermission(Constants.PermissionFlags.BAN_MEMBERS)) return false;
|
||||||
return clientMember.highestRole.position > this.highestRole.positon;
|
return clientMember.highestRole.position > this.highestRole.positon;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue