> ## Documentation Index
> Fetch the complete documentation index at: https://docs.razebot.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Leave Setup

> Set up a custom leave message for members who leave your server.

# Leave Setup

> Set up a custom leave message for members who leave your server.

<CardGroup cols={2}>
  <Card title="Welcome setup" icon="door-open" href="/server-config/welcome-setup">
    Configure a welcome message for new members joining your server.
  </Card>
</CardGroup>

<Tip>
  Use [embed scripting](/resources/scripting/embeds) and [variables](/resources/variables) to create fully personalised leave messages.
</Tip>

## Set the leave channel

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;goodbye channel (#channel)
  ```

  ```bash Example theme={null} theme={null}
  ;goodbye channel #goodbye
  ```
</CodeGroup>

## Set the leave message

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;goodbye message (message or embed code)
  ```

  ```bash Example — plain text theme={null} theme={null}
  ;goodbye message {user.name} has left {server.name}. We're down to {server.count} members.
  ```

  ```bash Example — embed theme={null} theme={null}
  ;goodbye message {embed}$v{color: #ff4444}$v{description: **{user.name}** has left the server. We now have **{server.count}** members.}$v{thumbnail: {user.avatar}}
  ```
</CodeGroup>

## Test the leave message

```bash theme={null} theme={null}
;goodbye test
```

Triggers the leave message as if you just left — useful for previewing before going live.

## View configuration

```bash theme={null} theme={null}
;goodbye config
```

## Remove leave setup

```bash theme={null} theme={null}
;goodbye reset
```
