v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Updates the settings of an existing role in a Discord guild.

This function modifies the properties of an existing role within a specified Discord guild. It allows updating various attributes of the role such as name, color, permissions, etc. The function returns a Promise that resolves to the updated role object.

post/updateRole

Request body

Response

Successful response

idstring

The ID of the updated role

namestring

The name of the updated role

colorinteger

The color of the updated role