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)
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) |