AntiRaidAntiRaid

Unban

Lift a ban so a member can rejoin the server.

Updated April 11, 2026

Use /moderation unban to remove an existing ban. The user won't automatically rejoin — they'll need a new invite link.

Usage

/moderation unban user:[user ID] reason:[reason]

Requires both the moderation.unban permission node and the Discord Ban Members permission.

Unban command

Parameters

PropTypeDescription
user
string
The user ID to unban. The user does not need to be in the server.
reason?
string
The reason for lifting the ban. Recorded in moderation logs.

Notes

  • You need the user's ID, not their username — you can copy it from the audit log or moderation logs
  • Unbanning does not send the user an invite; they'll need one to rejoin
  • The command will fail if the user is not currently banned
  • The action is logged with your name, the target user, reason, and timestamp