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

# Goodbye

> Announce departures of your server.

## Introduction

jar can announce departures with a custom message when they leave your server. You can setup many goodbyes - each with their own channel and message.

## Setting up a goodbye

To setup a goodbye, simply use the `goodbye add` command, followed by the channel and message you'd like to use.
<Tip>Embeds are supported in the message, you can use the embed builder to create one.</Tip>

<CodeGroup>
  ```ruby Syntax theme={null}
  goodbye add <channel> <message>
  ```

  ```ruby Example theme={null}
  ,,goodbye add #general Goodbye, see you soon!
  ```

  ```ruby Example w/ Embed theme={null}
  ,,goodbye add #general {embed}$v{title: Goodbye from the server!}$v{description: Hope you enjoyed your stay!}$v{content: {user.mention}}
  ```
</CodeGroup>

## Viewing a goodbye

To view a goodbye, simply use the `goodbye view` command, followed by the channel you'd like to view.
This will send the message you set up for the goodbye in the channel you specified.

<CodeGroup>
  ```ruby Syntax theme={null}
  goodbye view <channel>
  ```

  ```ruby Example theme={null}
  ,,goodbye view #general
  ```
</CodeGroup>

## Editing a goodbye

To edit a goodbye, simply use the `goodbye edit` command, followed by the channel and message you'd like to use.
This will overwrite the previous message you set up for the goodbye in the channel you specified.

<CodeGroup>
  ```ruby Syntax theme={null}
  goodbye edit <channel> <message>
  ```

  ```ruby Example theme={null}
  ,,goodbye edit #general Goodbye, see you soon!
  ```

  ```ruby Example w/ Embed theme={null}
  ,,goodbye edit #general {embed}$v{title: Goodbye from the server!}$v{description: Hope you enjoyed your stay!}$v{content: {user.mention}}
  ```
</CodeGroup>

## Listing goodbyes

To list all goodbyes in your server, simply use the `goodbye list` command.
This will show you all the goodbyes, along with their channel and message.

<CodeGroup>
  ```ruby Syntax theme={null}
  goodbye list
  ```

  ```ruby Example theme={null}
  ,,goodbye list
  ```
</CodeGroup>

## Removing a goodbye

To remove a goodbye, simply use the `goodbye remove` command, followed by the channel you'd like to remove.

<CodeGroup>
  ```ruby Syntax theme={null}
  goodbye remove <channel>
  ```

  ```ruby Example theme={null}
  ,,goodbye remove #general
  ```
</CodeGroup>

## Resetting all goodbyes

To reset all goodbyes in your server, simply use the `goodbye reset` command.

<CodeGroup>
  ```ruby Syntax theme={null}
  goodbye reset
  ```

  ```ruby Example theme={null}
  ,,goodbye reset
  ```
</CodeGroup>
