Skip to content
SinisterRectus edited this page Nov 8, 2016 · 21 revisions

Represents a Discord guild role.

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

Class Properties

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

Class Methods

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.
Clone this wiki locally