From d246982a61930aaf1e7c1e1c949c57d6b058de30 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Sat, 1 Oct 2016 01:42:13 -0400 Subject: [PATCH] Fix another derp wooo --- src/structures/GuildMember.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index 63c12e7d5..f1822e946 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -202,7 +202,7 @@ class GuildMember { get kickable() { if (this.user.id === this.guild.ownerID) return false; if (this.user.id === this.client.user.id) return false; - const clientMember = this.guild.member(this.client.member); + const clientMember = this.guild.member(this.client.user); if (!clientMember.hasPermission(Constants.PermissionFlags.KICK_MEMBERS)) return false; return clientMember.highestRole.position > this.highestRole.positon; } @@ -215,7 +215,7 @@ class GuildMember { get bannable() { if (this.user.id === this.guild.ownerID) return false; if (this.user.id === this.client.user.id) return false; - const clientMember = this.guild.member(this.client.member); + const clientMember = this.guild.member(this.client.user); if (!clientMember.hasPermission(Constants.PermissionFlags.BAN_MEMBERS)) return false; return clientMember.highestRole.position > this.highestRole.positon; }