Assign role
assign_roleAssign a role to a server member with an optional dry run to preview changes. Automatically checks role hierarchy to provide clear error explanations instead of permission errors.
Instructions
Give a member a role. Preflights the bot's role hierarchy so the failure mode is an explanation, not a 403. Supports dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| member | Yes | Member name or user ID. | |
| role | Yes | Role name or ID. | |
| reason | No | Audit log reason. | |
| dry_run | No | Preview without assigning. |