$oldRole
holds data of the role before it was updated, used in role update event, or else any data will be empty.
Field | Type | Description | Required |
---|
option | string | Option to retrieve. | true |
Field | Type | Description |
---|
name | String | Returns role name |
id | String | Returns role ID |
createdAt | String | Returns created date |
hexColor | String | Returns hex color |
members | String | Returns members having the role |
createdTimestamp | Number | Returns created timestamp |
memberCount | Number | Returns number of members having the role |
managed | Boolean | Returns if role is managed or not |
position | Number | Returns role position |
permissions | String | Returns permissions of role |