mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +00:00
Change Role.manageable to Role.editable
This commit is contained in:
parent
7d02e73a26
commit
544540fb02
1 changed files with 2 additions and 2 deletions
|
|
@ -284,13 +284,13 @@ class Role {
|
||||||
delete() {
|
delete() {
|
||||||
return this.client.rest.methods.deleteGuildRole(this);
|
return this.client.rest.methods.deleteGuildRole(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the role is managable by the client user.
|
* Whether the role is managable by the client user.
|
||||||
* @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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue