Update guild role. Requires manage_roles permission. Modifies role name, permissions, color, and other settings.
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>"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the guild
The ID of the role
The name of the role (1-100 characters)
The color of the role as an integer
0 <= x <= 16777215Whether the role should be displayed separately in the member list
The position of the role in the hoisted member list
Whether the role can be mentioned by anyone
Success
The unique identifier for this role
The name of the role
The colour of the role as an integer
0 <= x <= 2147483647The position of the role in the role hierarchy
0 <= x <= 2147483647The permissions bitfield for the role
Whether this role is displayed separately in the member list
Whether this role can be mentioned by anyone
The position of the role in the hoisted member list
0 <= x <= 2147483647The unicode emoji for this 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>"
}