mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
I'm gonna need more derps to fix.
This commit is contained in:
parent
d246982a61
commit
db815d4d9f
1 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ class GuildMember {
|
|||
if (this.user.id === this.client.user.id) return false;
|
||||
const clientMember = this.guild.member(this.client.user);
|
||||
if (!clientMember.hasPermission(Constants.PermissionFlags.KICK_MEMBERS)) return false;
|
||||
return clientMember.highestRole.position > this.highestRole.positon;
|
||||
return clientMember.highestRole.position > this.highestRole.position;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -217,7 +217,7 @@ class GuildMember {
|
|||
if (this.user.id === this.client.user.id) return false;
|
||||
const clientMember = this.guild.member(this.client.user);
|
||||
if (!clientMember.hasPermission(Constants.PermissionFlags.BAN_MEMBERS)) return false;
|
||||
return clientMember.highestRole.position > this.highestRole.positon;
|
||||
return clientMember.highestRole.position > this.highestRole.position;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue