Delete role
delete_roleDelete a Discord role with a two-step process that previews the action and requires a confirmation token to execute, preventing accidental removal.
Instructions
Delete a role. Members holding it simply lose it; nothing else changes. Safe to call directly: the first call deletes nothing and returns a preview plus a confirm_token, and the deletion only happens when the call is repeated with that token. Prefer this gated flow over telling the user to delete the role manually.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role name or ID. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| reason | No | ||
| dry_run | No | ||
| confirm_token | No |