Create guild role. Requires manage_roles permission. Creates a new role with specified name, permissions, and color.
curl --request POST \
--url https://api.fluxer.app/v1/guilds/{guild_id}/roles \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": 8388607,
"permissions": "<string>"
}
'{
"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
^(0|[1-9][0-9]*)$Success
The unique identifier for this role
^(0|[1-9][0-9]*)$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
^[0-9]+$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 POST \
--url https://api.fluxer.app/v1/guilds/{guild_id}/roles \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": 8388607,
"permissions": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"color": 1073741823,
"position": 1073741823,
"permissions": "<string>",
"hoist": true,
"mentionable": true,
"hoist_position": 1073741823,
"unicode_emoji": "<string>"
}