ban_member
Ban a user from a Discord server and optionally delete their recent messages, with purge history configurable up to 7 days.
Instructions
Ban a user from the server and optionally purge recent messages (0 to 604800 seconds = 7 days)
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": {
"userId": "<userId>"
},
"name": "ban_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Audit log reason | |
| userId | Yes | User ID to ban | |
| guildId | No | Discord server ID (defaults to DISCORD_GUILD_ID) | |
| deleteMessageSeconds | No | Number of seconds of message history to purge (max: 604800 = 7 days) |