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

@@ -290,7 +290,7 @@ class Role {
* @type {boolean} * @type {boolean}
* @readonly * @readonly
*/ */
get manageable() { get editable() {
if (this.managed) return false; if (this.managed) return false;
const clientMember = this.guild.member(this.client.user); const clientMember = this.guild.member(this.client.user);
if (!clientMember.hasPermission(Constants.PermissionFlags.MANAGE_ROLES_OR_PERMISSIONS)) return false; if (!clientMember.hasPermission(Constants.PermissionFlags.MANAGE_ROLES_OR_PERMISSIONS)) return false;