Creates a new RolePayload
instance.
Optional
data: { Optional initial data to set in the payload.
Optional
color?: numberOptional
hoist?: booleanOptional
icon?: stringOptional
mentionable?: booleanOptional
name?: stringOptional
permissions?: stringOptional
unicode_Gets the color of the role.
The color as an integer.
Sets the color of the role.
The color as an integer (RGB value).
Gets the hoist status of the role.
True if the role should be hoisted.
Sets the hoist status of the role.
True if the role should be displayed separately in the sidebar.
Gets the icon for the role.
The icon as a string, or null if not set.
Sets the icon for the role.
The icon as a string, or null to remove it.
Gets the mentionable status of the role.
True if the role is mentionable.
Sets the mentionable status of the role.
True if the role should be mentionable.
Gets the name of the role.
The name of the role.
Sets the name of the role.
The name of the role (max 100 characters).
Gets the permissions for the role.
The permissions as a string.
Sets the permissions for the role.
The permissions as a bitwise string.
Gets the unicode emoji for the role.
The unicode emoji as a string, or null if not set.
Sets the unicode emoji for the role.
The unicode emoji as a string, or null to remove it.
Represents the payload for creating or updating a role in a guild. This class encapsulates all the parameters needed to define a role.