Change Role.manageable to Role.editable

This commit is contained in:
Amish Shah
2016-11-06 16:49:14 +00:00
parent 7d02e73a26
commit 544540fb02

View File

@@ -284,13 +284,13 @@ class Role {
delete() {
return this.client.rest.methods.deleteGuildRole(this);
}
/**
* Whether the role is managable by the client user.
* @type {boolean}
* @readonly
*/
get manageable() {
get editable() {
if (this.managed) return false;
const clientMember = this.guild.member(this.client.user);
if (!clientMember.hasPermission(Constants.PermissionFlags.MANAGE_ROLES_OR_PERMISSIONS)) return false;