v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Delete a role from a guild in Discord.

This function removes a specified role from a Discord guild. It takes the guild ID and role ID as parameters and returns a Promise that resolves when the role is successfully deleted. This operation is irreversible and should be used with caution.

post/deleteRole

Request body

Response

Role successfully deleted

messagestring

Example response

{
  "message": "Role deleted successfully"
}