add_role
Assign a Discord role to a server member using guild, user, and role IDs, with an optional reason recorded in the audit log.
Instructions
Atribui um cargo a um membro.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"user_id": "<user_id>",
"role_id": "<role_id>"
},
"name": "add_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| role_id | Yes | ||
| user_id | Yes | ||
| guild_id | Yes |