Interface

RoleCreateOptions

CamelCase options for creating a guild role. Serialized to snake_case wire fields before REST via toRoleRequestBody.

Properties

NameTypeDescription
color?numberRole color as 24-bit RGB.
hoist?booleanWhether the role is displayed separately in the member list.
hoistPosition?number | nullHoisted position (visual separator group).
mentionable?booleanWhether the role can be @mentioned.
name?stringRole name.
permissions?string | PermissionResolvablePermissions bitfield string or PermissionResolvable.
position?numberSort position in the role list.
unicodeEmoji?string | nullUnicode emoji for the role.