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

# Greet & farewell

> Welcome new members and send consistent departure messages.

Use Hedwig's greet and farewell systems to make onboarding consistent without
manually posting every arrival and departure. Setup, test, and reset require
**Manage Server**; the variables command is safe for members to view.

## Welcome messages

| Command            | Use it to                            |
| ------------------ | ------------------------------------ |
| `/greet setup`     | Configure welcome messages           |
| `/greet test`      | Preview the current welcome message  |
| `/greet reset`     | Remove welcome configuration         |
| `/greet variables` | View variables available in messages |

## Farewell messages

| Command               | Use it to                            |
| --------------------- | ------------------------------------ |
| `/farewell setup`     | Configure farewell messages          |
| `/farewell test`      | Preview the current farewell message |
| `/farewell reset`     | Remove farewell configuration        |
| `/farewell variables` | View farewell variables              |

## Setup flow

1. Create a public welcome channel.
2. Run `/greet setup` and choose the channel and message style.
3. Run `/greet variables` to see the values available for your message.
4. Run `/greet test` before enabling a large invite campaign.
5. Repeat the flow with `/farewell setup` if you want departure messages.

## Message variables

Both systems support the following variables:

| Variable                | Replaced with                                |
| ----------------------- | -------------------------------------------- |
| `$member_mention`       | A mention of the joining or leaving member   |
| `$member_name`          | The member's username                        |
| `$member`               | The member tag or username                   |
| `$member_count`         | Current server member count                  |
| `$ordinal_member_count` | Member count with an ordinal suffix          |
| `$guild_name`           | Server name                                  |
| `$join_time`            | Discord timestamp for when the member joined |
| `$leave_time`           | Discord timestamp for the farewell event     |
| `$member_avatar`        | The member's avatar URL                      |

`$leave_time` is meaningful for farewell messages; `$join_time` may be
`Unknown` when Discord has no join date available. The setup panel supports
simple text, embeds, and Components V2 layouts with images, thumbnails, and
link buttons.

<Tip>
  Keep welcome messages short and action-oriented: explain where to read the
  rules, how to get roles, and where to ask for help. Always run the matching
  `test` command before opening the server to new members.
</Tip>
