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

# Welcome and goodbye

> Greet people when they join and post when they leave.

## <Icon icon="door-open" size={24} /> Set a welcome message

Leave out `channel` to send it as a DM.

<CodeGroup>
  ```plaintext Syntax theme={null}
  /welcome set <message> [channel] [embed]
  ```

  ```plaintext Example theme={null}
  /welcome set message:Welcome {user} to {server}! You're our {ordinal} member. channel:#welcome
  ```
</CodeGroup>

Newt replies with a preview straight away.

## <Icon icon="door-closed" size={24} /> Set a goodbye message

A goodbye needs a channel. Newt can't DM someone who has left.

<CodeGroup>
  ```plaintext Syntax theme={null}
  /goodbye set <message> <channel> [embed]
  ```

  ```plaintext Example theme={null}
  /goodbye set message:{username} has left. channel:#welcome
  ```
</CodeGroup>

## <Icon icon="brackets-curly" size={24} /> Placeholders

| Placeholder | Becomes |
| - | - |
| `{user}` | A mention, like @Alex |
| `{username}` | Their display name |
| `{tag}` | Their full username |
| `{server}` | The server name |
| `{count}` | The member count |
| `{ordinal}` | Their position, like 42nd |
| `\n` | A new line |

## <Icon icon="image" size={24} /> Welcome card

A picture with the new member's avatar, a greeting and their member number. Set it up on the dashboard's **Welcome** tab:

* 10 colour styles, 4 layouts and 3 avatar shapes
* Or upload your own background (PNG, JPG or WebP, up to 1 MB)
* The preview uses your avatar and updates as you type
* **Send a test welcome** posts a real one, starring you

The **Goodbye** tab has a goodbye card. It copies the welcome card unless you change it.

## <Icon icon="gear" size={24} /> Turn off or check

<AccordionGroup>
  <Accordion title="Turn off" icon="power-off">
    Your wording is kept.

    ```plaintext theme={null}
    /welcome off
    /goodbye off
    ```
  </Accordion>

  <Accordion title="See what's set" icon="eye">
    Shows the settings and a preview.

    ```plaintext theme={null}
    /welcome show
    /goodbye show
    ```
  </Accordion>
</AccordionGroup>

## <Icon icon="circle-info" size={24} /> Good to know

* If your server has a rules screen, the welcome waits until they accept.
* `@everyone` and `@here` never ping.
* People turned away by the [account age check](/moderation/automod#new-account-protection) get no welcome or goodbye.
* Messages can be up to 1,500 characters.

**Permission:** Manage Server
