Interface
APIRole
Role from GET /guilds/{id}/roles. `permissions` is a bitfield as string (e.g. "8933636165185").
Properties
color
: numberRole color as RGB integer.
hoist
: booleanWhether the role is hoisted (displayed separately).
hoist_position
?: number | nullHoisted position (displayed separately in member list).
id
: SnowflakeRole ID.
mentionable
: booleanWhether the role can be mentioned.
name
: stringRole name.
permissions
: stringPermissions bitfield as string.
position
: numberSort position in the role list.
unicode_emoji
?: string | nullUnicode emoji for the role (if no custom icon).