members_unban
Remove a ban for a Discord user in a specified guild so they can rejoin, optionally recording an audit reason.
Instructions
Purpose: Remove a ban for a user (allowing them to rejoin).
When to use: - Restore a previously-banned user.
Returns: {unbanned, user_id, guild_id}. Idempotent - unbanning a non-banned user returns 404 from Discord.
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>"
},
"name": "members_unban"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Banned user to release | |
| guild_id | Yes | Guild to unban from | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||