> For the complete documentation index, see [llms.txt](https://docs.serenity.wtf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.serenity.wtf/get-started/welcome-and-leave/setting-up-leave.md).

# Setting up Leave

{% hint style="info" %}
Replace `[prefix]` with your server's prefix.
{% endhint %}

## Creating a Leave Channel

1. **Head over to your Discord Server**

   Click on the Discord Server that you would like to setup leave for using serenity.
2. **Create the channel**

   Setup permissions for the channel with the desired name, for this example we will be using `#leave`

## Creating an Embed and setting the Leave Channel

1. **Creating the Leave Embed**

   Run the \[prefix]embedsetup command to create the leave embed which you can use variables with. For more information regarding variables click [here](/embeds/content-in-embeds/variables.md).
2. **Setup the Leave Channel**

   Run the \[prefix]leave add command, which will give you further information.

```
// Syntax
[prefix]leave add [channel] [code]

// Example
[prefix]leave add #welcome {embed}{title: Bye!}$v{author: {user.name}}
```

<figure><img src="/files/jw5DtlAhnkItBQ4yhQZp" alt=""><figcaption></figcaption></figure>

## Remove Leave Embeds

If you wish to remove the leave system from a channel, or you want to remove all embeds on the current server, you can run:

```
// Remove a specific Leave Embed
[prefix]leave remove #leave

//Remove all Leave Embeds from the Server
[prefix]leave reset
```

<figure><img src="/files/Kx9UAfb0JO9hDkaqHJ8j" alt=""><figcaption></figcaption></figure>
