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

# Leave Messages

> Send message when a member leaves your server

Leave messages are similar to welcome messages but are sent when a member leaves your server. Miona allows you to create fully customizable leave messages, making it easy to inform your community whenever someone leaves. You can personalize these messages with text, images, or embeds, using variables to include specific details like the member's username or the current member count. This allows you to create a unique and informative message that matches your server's style.

<Frame caption="Example Leave message">
  <img src="https://mintcdn.com/miona/T-Ii_MvXcsOpaOcQ/images/leave/example-leave.png?fit=max&auto=format&n=T-Ii_MvXcsOpaOcQ&q=85&s=049da6ed8fd2570b86850e3f81df6617" alt="Example Leave message" width="495" height="153" data-path="images/leave/example-leave.png" />
</Frame>

## ⚙️ How to set it up?

Firstly we need to create the message. You can do that by running the following command:

```sh theme={null}
/leave setmessage
```

Once you run this command the built-in editor will open and you can start editing your message.

<Frame caption="Editing leave message with built-in editor">
  <img src="https://mintcdn.com/miona/T-Ii_MvXcsOpaOcQ/images/leave/editing-leave.png?fit=max&auto=format&n=T-Ii_MvXcsOpaOcQ&q=85&s=0fac5b42aad071af63e66127481782f4" alt="Editing leave message with built-in editor" width="990" height="275" data-path="images/leave/editing-leave.png" />
</Frame>

By clicking on each button, you can edit the properties of the message/embed, for example by clicking on the `Edit basic information` you can edit the embed `Title`, `Description`, `Color`, etc.

<Note>
  Built-in editor automatically saves your changes.
</Note>

Next we need to set the channel where the message will be sent. You can do that by running the following command:

```sh theme={null}
/leave setchannel <channel>
```

After this step the bot will automatically send the message to the channel when someone leaves your server.
You can test this message by running the following commands:

```
/leave test
```

## ❌ How to disable?

You can disable boost messages by running the following command:

```sh theme={null}
/leave removechannel
```

## 🧠 Variables

You can use variables in most messages where Built-in editor is used.\
You can find the list of variables [here](/variables).

<Note>
  Keep in mind that `{member_mention}` sometimes might result in @Unknown-user as that user left the server and might be visible to the bot.
</Note>
