Edit a Discord guild role
Changed onUpdates a role's name, color, hoist, mentionable flag, or permission bitfield. At least one field must be supplied. Omitted fields are left unchanged.
Requires the bot to hold Manage Roles, and the target role must sit below the bot's highest role. See the create-role operation for the re-invite requirement.
Request
- Base URL: https://zernio.com/api
- URL: https://zernio.com/api/v1/discord/guilds/{guildId}/roles/{roleId}
- Auth: HTTP bearer
Path parameters
Discord guild snowflake ID
Discord role snowflake ID
Query parameters
SocialAccount _id of the Discord account bound to this guild
Request body
Response
Role updated.
Changes
- warning
added the new
accountenum value to the/response property for the response status
- warning
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info