From 039315a9a3c9736ad28e7e8439b4c98850ccf6ec Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Mon, 19 Sep 2016 01:44:46 -0400 Subject: [PATCH] Replace local usages of GuildMember.id with user.id --- src/structures/GuildMember.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index 80812f1b..53a8e41f 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -180,8 +180,8 @@ class GuildMember { * @type {boolean} */ get kickable() { - if (this.id === this.guild.ownerID) return false; - if (this.id === this.client.user.id) return false; + if (this.user.id === this.guild.ownerID) return false; + if (this.user.id === this.client.user.id) return false; const clientMember = this.member(this.client.member); if (!clientMember.hasPermission(Constants.PermissionFlags.KICK_MEMBERS)) return false; return clientMember.highestRole.position > this.highestRole.positon; @@ -192,8 +192,8 @@ class GuildMember { * @type {boolean} */ get bannable() { - if (this.id === this.guild.ownerID) return false; - if (this.id === this.client.user.id) return false; + if (this.user.id === this.guild.ownerID) return false; + if (this.user.id === this.client.user.id) return false; const clientMember = this.member(this.client.member); if (!clientMember.hasPermission(Constants.PermissionFlags.BAN_MEMBERS)) return false; return clientMember.highestRole.position > this.highestRole.positon;