> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/unban-a-member
> Every page: https://botghost.com/docs/llms.txt

# Unban a Member

Lift a ban so a user can join your server again.

Removes a ban. Banned users aren't in the server, so you can't pick them from a user option. Use their ID instead.

![The Unban a Member settings, with Which user, the audit log reason and What this block will do marked](https://botghost.com/docs/content/assets/workspace/block-unban-action.png)

- **A** **Which user**: the command user, or **A specific member** by ID, a string option or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that holds a user ID.
- **B** **Reason**: optional, shown in your server's audit log.
- **C** A summary of what the block will do with your settings.

> **Note:** The bot needs the **Ban Members** permission. To ban someone for a set time instead, use **Unban after a set time** in [Ban a member](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/ban-a-member).

## Success and error paths

Turn on **Enable Success/Error Handles** to run different blocks when it works (green path) and when it fails (red path).
