Skip to main content
PATCH
/
guilds
/
{guild_id}
/
roles
/
{role_id}
Update guild role
curl --request PATCH \
  --url https://api.fluxer.app/v1/guilds/{guild_id}/roles/{role_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "color": 8388607,
  "permissions": "<string>",
  "hoist": true,
  "hoist_position": 123,
  "mentionable": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "color": 1073741823,
  "position": 1073741823,
  "permissions": "<string>",
  "hoist": true,
  "mentionable": true,
  "hoist_position": 1073741823,
  "unicode_emoji": "<string>"
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

guild_id
string<snowflake>
required

The ID of the guild

role_id
string<snowflake>
required

The ID of the role

Body

application/json
name
string

The name of the role (1-100 characters)

color
integer<int32>

The color of the role as an integer

Required range: 0 <= x <= 16777215
permissions
string<int64>
hoist
boolean

Whether the role should be displayed separately in the member list

hoist_position
integer<int53> | null

The position of the role in the hoisted member list

mentionable
boolean

Whether the role can be mentioned by anyone

Response

Success

id
string
required

The unique identifier for this role

name
string
required

The name of the role

color
integer<int32>
required

The colour of the role as an integer

Required range: 0 <= x <= 2147483647
position
integer<int32>
required

The position of the role in the role hierarchy

Required range: 0 <= x <= 2147483647
permissions
string<int64>
required

The permissions bitfield for the role

hoist
boolean
required

Whether this role is displayed separately in the member list

mentionable
boolean
required

Whether this role can be mentioned by anyone

hoist_position
integer<int32> | null

The position of the role in the hoisted member list

Required range: 0 <= x <= 2147483647
unicode_emoji
string | null

The unicode emoji for this role