Interface

RESTUpdateRoleBody

Request body for PATCH /guilds/{id}/roles/{roleId} (update role). All fields optional.

Properties

color?: number

Role color as RGB integer.

hoist?: boolean

Whether the role is hoisted.

hoist_position?: number | null

Hoisted position.

mentionable?: boolean

Whether the role can be mentioned.

name?: string

Role name.

permissions?: string

Permissions bitfield as string.

position?: number

Sort position.

unicode_emoji?: string | null

Unicode emoji for the role.