Skip to main content

/mass-ban

Ban a large list of users in one command - for cleaning up raids or coordinated scam waves. IDs are accepted inline (up to 50) or as a .txt file (up to 5000). Each successful ban gets its own moderation case with the reason you provide, so appeals and case history work exactly as they do for /ban.

Required Permission​

The user executing the command must have the Administrator permission - this is an admin-only tool and cannot be delegated to a moderator role through the dashboard. The bot must have Ban Members.

Options​

OptionRequiredDescription
idsNoUser IDs separated by commas, spaces, or new lines. Maximum 50 IDs here - use a file for more.
fileNoA .txt file of user IDs (comma / space / newline separated). Maximum 5000 IDs.
reasonNoReason applied to every ban. Supports preset-reason autocomplete.
delete_daysNoDays of message history to delete for each user (0-7). When omitted, the server's Ban message deletion setting (Dashboard → Moderation → Action preferences) decides; passing a value overrides it for this run only.

At least one of ids or file is required. When both are given they are merged and de-duplicated. A configured mod log channel is required - that is where progress and the final report are delivered.

Behavior​

Because banning thousands of users takes far longer than Discord allows a command to reply for, /mass-ban runs as a background job:

  1. The command replies immediately (only to you) with how many valid IDs were queued.
  2. The job bans users sequentially (respecting Discord's rate limits) and posts periodic progress updates to the mod log channel.
  3. When finished it posts a summary (banned / already banned / skipped / failed counts) plus a full .txt report of every outcome.

Each successful ban creates an appealable BAN case with your reason. Mass bans are silent by design: no DM is sent to banned users and no per-ban public notice or per-ban mod-log embed is posted (only the single summary).

Who is skipped​

Members are never banned - and are reported in the skip buckets - when they hold a trusted role, hold a protected role (moderation protected-roles list), are the server owner, or have a role at or above the bot's highest role. The command invoker and the bot itself are also skipped. Users already banned (by the bot or externally) are detected and skipped.

Notes​

  • Only one mass ban can run per server at a time; a second invocation is rejected until the first finishes.
  • Users who have already left the server are still banned by ID. Trusted/protected-role filtering only applies to members still in the server (users who have left have no roles to check) - the same behavior as /ban by ID.
  • If the bot loses the Ban Members permission mid-run, the job stops early and reports how far it got.
  • Best-effort on restart: if the bot restarts mid-run the job stops; simply run it again - users already banned are skipped automatically.