Interface

RESTCreateRoleBody

Request body for POST /guilds/{id}/roles (create role). All fields optional.

Properties

NameTypeDescription
color?numberRole color as RGB integer.
hoist?booleanWhether the role is hoisted.
hoist_position?number | nullHoisted position.
mentionable?booleanWhether the role can be mentioned.
name?stringRole name.
permissions?stringPermissions bitfield as string.
position?numberSort position.
unicode_emoji?string | nullUnicode emoji for the role.