-
Notifications
You must be signed in to change notification settings - Fork 149
Role
SinisterRectus edited this page Nov 6, 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. |
| disablePermissions(flag[, ...]) | Disables permissions for the role by flag. |
| enableAllPermissions() | Enables all permissions for the role. |
| enablePermissions(flag[, ...]) | Enables permissions for the role by flag. |
| permissionsAreEnabled(flag[, ...]) | Indicates whether permissions are enabled for the role. |