How do I unban someone (/unban) and what if it fails?

CommandsBanUnban

/unban lifts a ban. Since a banned person is no longer on the server, you identify them by their account ID. Permission required: Ban Members.

  1. Open the ban list Discord › Server Settings › Bans.
  2. Copy the ID of the account to unban
  3. Type /unban and paste it in id Required field. Add a raison if you wish.
  4. Confirm

If it fails

MessageCause
Invalid ID (17 to 20 digits)The ID is not in the right format.
This user is not banned on this serverThe account is not in the ban list (already unbanned, or wrong ID).
I don't have the required permissionsThe bot no longer has the Ban Members permission. Check its role.
A temporary ban A /tempban is lifted when it expires; you can also lift it earlier with /unban.

Still stuck?

Contact support with the title of this article, the step where you are stuck and what you see on screen.

Contact support More articles: Moderation

Last checked: 13 November 2026.