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

# Leave Setup

> Configure leave for your server

`recommended to use embed builder`

> The **Leave Setup** system lets you configure an automated leave message members you can always use the [embed builder](https://xvz.wtf/embed-builder) to build embed to your own style!

***

## Permissions

To use any of the `Leave` subcommands, you need the (`manage_guild`) permission

***

## Command Overview

***

### Set Leave Message

Set a new Leave message for your server

```plaintext theme={null}
Leave set <#channel> <raw>
```

**Arguments:**

* `<#channel>` — The text channel where the leave message will be sent
* `<raw>` — The raw embed/message string that defines your leave message

**Example:**

```plaintext theme={null}
;leave set #chat {message:{user.mention} left {guild.name}$author:{user.pfp} {user.name}$#&color:#000000} 
```

<Frame>
  <img src="https://mintcdn.com/xvz/WiRNfq9ruINAqYOl/images/leaveset.png?fit=max&auto=format&n=WiRNfq9ruINAqYOl&q=85&s=46227db9be61f2f3becf718759675462" width="733" height="310" data-path="images/leaveset.png" />
</Frame>

***

### Reset Leave Message

Remove the current Leave configuration from your server

```plaintext theme={null}
;leave reset
```

<Frame>
  <img src="https://mintcdn.com/xvz/WiRNfq9ruINAqYOl/images/lreset.png?fit=max&auto=format&n=WiRNfq9ruINAqYOl&q=85&s=9f32fc4a11ebcaec46989e711672e8e4" width="384" height="167" data-path="images/lreset.png" />
</Frame>

***

### View Leave Message

See preview of the currently configured Leave message

```plaintext theme={null}
;leave view
```

```plaintext theme={null}
;leave preview
```

<Frame>
  <img src="https://mintcdn.com/xvz/WiRNfq9ruINAqYOl/images/lview.png?fit=max&auto=format&n=WiRNfq9ruINAqYOl&q=85&s=9c659a6e84e8a3b6fcb87db5936b0d1b" width="299" height="216" data-path="images/lview.png" />
</Frame>

***

## Variables

| Variable         | Description              |
| ---------------- | ------------------------ |
| `{user.mention}` | Mentions the new user    |
| `{user.name}`    | Username only            |
| `{user.tag}`     | Username + discriminator |
| `{user.id}`      | User's ID                |
| `{user.pfp}`     | URL to user's avatar     |
| `{guild.name}`   | Server name              |
| `{guild.icon}`   | Server icon URL          |
| `{membercount}`  | Current member count     |
| `{xvz.name}`     | Bot name                 |
| `{xvz.pfp}`      | Bot avatar URL           |

***

## Raw Embed Syntax

**Available Fields:**

* `message:` — Plain text message content
* `title:` — Embed title
* `description:` — Embed description
* `author:` — Embed author text (optionally with icon URL)
* `thumbnail:` — Embed thumbnail image URL
* `image:` — Embed image URL
* `footer:` — Embed footer text (optionally with icon URL)
* `&color:` — Embed color in HEX (e.g., `&color:#FF0000`)
* `button:` — Add interactive buttons (see below)

**Example Embed:**

```plaintext theme={null}
{description:{user.mention} left {guild.name}$#&color:#000000} 
```

<Frame>
  <img src="https://mintcdn.com/xvz/WiRNfq9ruINAqYOl/images/embedeg2.png?fit=max&auto=format&n=WiRNfq9ruINAqYOl&q=85&s=2da2fbab8f4b172ff6169f36fd802549" width="624" height="153" data-path="images/embedeg2.png" />
</Frame>

***

## Buttons Syntax

**Parameters:**

* `style#primary` / `style#secondary` / `style#success` / `style#danger` / `style#link`
* `emoji:EMOJI`
* `url:LINK` *(required for link buttons)*
* `disable:` *(disables the button)*

**Example Buttons:**

```plaintext theme={null}
button:Click Me#style#primary#emoji:👋
button:Visit Website#style#link#url:https://example.com
```

***
