set_member_roles
Assign or remove Discord member roles, optionally previewing changes with a dry run and logging reasons to the audit log.
Instructions
Give roles to a member and/or take roles away.
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": {
"member": "<member>"
},
"name": "set_member_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | ||
| bot | No | Use this bot (name or id) instead of choosing automatically | |
| member | Yes | ||
| reason | No | Reason shown in the server's audit log | |
| remove | No | ||
| server | No | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. | |
| dry_run | No | Show the requests that would be made without changing anything |