discord_add_role
Assign an existing role to a Discord server member using the Manage Roles permission. Idempotent: no effect if member already has the role.
Instructions
Assign an existing role to a member. Requires the Manage Roles permission, and the role must be below the bot's highest role. Idempotent: assigning a role the member already has has no effect. Use discord_remove_role to undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| user_id | Yes | Discord user ID (snowflake) of the member to give the role to. | |
| role_id | Yes | ID (snowflake) of the role to assign. | |
| reason | No | Optional reason recorded in the server audit log. |