discord_bulk_ban
Ban multiple users in a single API call to mitigate raids. Preview which users would be banned using dry run, then confirm to execute.
Instructions
Ban many users in a single call, intended for raid mitigation. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the exact list of user IDs that would be banned, then re-call with dry_run:false to actually ban them. Requires both the Ban Members and Manage Server permissions. Returns counts of banned vs failed users; Discord rejects the whole call with an error if no user could be banned. Use discord_ban_member for a single ban with finer control.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the server audit log. | |
| dry_run | No | If true (default), only returns the user IDs that would be banned without banning anyone. Set false to actually ban. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| user_ids | Yes | Array of user IDs (snowflakes) to ban (max 200 per call — Discord API limit). | |
| delete_message_seconds | No | Also delete each user's messages from the last N seconds (0–604800, i.e. up to 7 days). Default 0. |