Stop using deprecated methods within discord.js (#1441)

* fix deprecation stuff

* fixed a check
This commit is contained in:
Isabella
2017-05-01 04:14:26 -05:00
committed by Amish Shah
parent 166161d6d3
commit a02e10926d
3 changed files with 6 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ class Role {
get editable() {
if (this.managed) return false;
const clientMember = this.guild.member(this.client.user);
if (!clientMember.hasPermission(Permissions.FLAGS.MANAGE_ROLES_OR_PERMISSIONS)) return false;
if (!clientMember.permissions.has(Permissions.FLAGS.MANAGE_ROLES_OR_PERMISSIONS)) return false;
return clientMember.highestRole.comparePositionTo(this) > 0;
}