ban_member
Ban a Discord user from a server and optionally delete their recent messages, with a dry-run preview and audit log reason.
Instructions
Ban a user from the server, optionally deleting their recent messages.
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": {
"user": "<user>"
},
"name": "ban_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Use this bot (name or id) instead of choosing automatically | |
| user | Yes | Member name/id, or a user id of someone not in the server | |
| reason | No | Reason shown in the server's audit log | |
| server | No | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. | |
| confirm | No | Must be true to really do this permanent action; without it you get a preview | |
| dry_run | No | Show the requests that would be made without changing anything | |
| delete_message_hours | No |