Skip to content

Massban

Massban is used when staff need to ban multiple users in one controlled flow.

It is useful for raids, compromised account waves, spam groups, or cleanup after a major incident.

What Massban does

Massban can:

  • Accept multiple user IDs or targets depending on your version.
  • Ban users in sequence.
  • Respect Discord rate limits.
  • Show progress while it runs.
  • Track successful bans.
  • Track failed or skipped users.
  • Post a final summary.
  • Create moderation logs and cases.

Permissions required

Lockie needs:

  • Ban Members
  • View Channel and Send Messages where the command is used
  • Embed Links if summaries use embeds or components
  • A role above the users being banned

The moderator also needs permission to use the command.

Progress messages

Lockie's improved massban flow starts with an initial progress message, then updates it while the action runs. This avoids sending too many messages and makes it easier for staff to follow the job.

The final summary should make it clear what happened.

Common fields include:

FieldMeaning
ActionThe moderation action, usually Massban.
ModeratorThe staff member who started it.
ReasonThe reason used for the bans.
Delete HistoryWhether message history deletion was requested.
SuccessfulNumber of users banned successfully.
Failed or SkippedNumber of users that could not be banned or were skipped.
TakenHow long the action took.

Why a user may fail or be skipped

Common causes:

  • The user is already banned.
  • The user ID is invalid.
  • Lockie's role is too low.
  • Lockie is missing Ban Members.
  • Discord rejected or rate limited the action.
  • The target is protected by Discord role hierarchy.

Best practices

  • Use a clear reason.
  • Double-check IDs before confirming.
  • Use delete history carefully.
  • Watch the final summary.
  • Review failed or skipped users after completion.
  • Avoid running multiple massban jobs at the same time.

Troubleshooting

If Massban is not working:

  1. Check Lockie's role position.
  2. Confirm Lockie has Ban Members.
  3. Confirm the command was used by authorized staff.
  4. Read the final failed or skipped count.
  5. Check the moderation log channel.

See Troubleshooting for permission errors.