-
Notifications
You must be signed in to change notification settings - Fork 143
Role
SinisterRectus edited this page Nov 5, 2016
·
21 revisions
Properties Inherited From Container
Name | Type | Mutable | Description |
---|---|---|---|
client | Client | Client object to which the Discord object is known | |
parent | * | Parent Discord object |
Properties Inherited From Snowflake
Name | Type | Mutable | Description |
---|---|---|---|
createdAt | number | Unix time in seconds at which the object was created by Discord | |
id | string | Snowflake ID for the object |
Name | Type | Mutable | Description |
---|---|---|---|
color | Color | X | Object representing the role color |
guild | Guild | Discord guild in which the role exists | |
hoist | boolean | X | Whether members with this role are displayed separated from others |
managed | boolean | Whether the role is managed by an integration | |
mentionString | string | string | |
mentionable | boolean | X | Whether guild members can mention this role |
name | string | X | Role name |
permissions | Permissions | X | Object representing the role's permissions |
position | number | X | The position setting of the guild's list of roles |
Prototype | Description |
---|---|
delete() | Permanently deletes the role. |
disableAllPermissions() | Disables all permissions for the role. |
disablePermission(flag[, ...]) | Disables a permission or permissions for the role. |
enableAllPermissions() | Enables all permissions for the role. |
enablePermission(flag[, ...]) | Enables a permission or permissions for the role. |
permissionIsEnabled(flag[, ...]) | Returns a boolean indicating whether a permission or permissions is/are enabled for the role. |