> For the complete documentation index, see [llms.txt](https://docs.mochi.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mochi.bot/welcome-and-community/welcome-and-goodbye.md). Agents can also search and read this documentation through its [MCP server](https://docs.mochi.bot/~gitbook/mcp).

# Welcome & Goodbye

Every member deserves a warm hello, and a kind goodbye.

The moment someone joins your server, Mochi can greet them by name, show off a pretty welcome card, send them a private hello, and even give them a starter role. 🎉

And when someone leaves? Mochi can post a gentle goodbye, so your community knows they've moved on. 👋

***

## <mark style="color:$primary;">What it does</mark>

**When someone joins**, Mochi can:

* 💬 Post a **welcome message** in a channel of your choice
* 🖼️ Add a **welcome card**: an image with their avatar, name and member number *(Mochi Prime)*
* 📩 Send them a **welcome DM** (a private message) with anything they should know
* 🎭 Give them a **welcome role** automatically

**When someone leaves**, Mochi can:

* 👋 Post a **goodbye message**, with or without a **goodbye card** *(Mochi Prime)*

You decide what each message says, where it goes, and how it looks, using plain text, a [Message Template](https://docs.mochi.bot/automation-and-tools/message-templates.md), or both.

***

## 🔐 <mark style="color:$primary;">Permissions Mochi needs</mark>

| Where                             | Permissions                                                                                   |
| --------------------------------- | --------------------------------------------------------------------------------------------- |
| Your welcome and goodbye channels | **View Channel** · **Send Messages** · **Embed Links** · **Attach Files** (for welcome cards) |
| Server-wide (Mochi's role)        | **Manage Roles** (for the welcome role)                                                       |

{% hint style="info" %}
💡 **Troubleshooting tip:** Something not working? Don't panic, it's usually just a permission! Check the channel itself (⚙️ **Edit Channel → Permissions**) and Mochi's role in **Server Settings → Roles**, because a channel setting can block something her role allows. See [Roles & Permissions](https://docs.mochi.bot/getting-started/roles-and-permissions.md).
{% endhint %}

***

## <mark style="color:$primary;">How to set it up</mark>

### On the dashboard

1. Open the [**Mochi Dashboard**](https://mochi.bot) and choose your server.
2. In the sidebar, open **Server Management** and click **Welcome & Goodbye**.
3. In the **Welcome** card:
   * Write your **Message**. Type `{` to add variables like `{user.mention}`.
   * *(Optional)* Choose a **Message Template** for a richer message.
   * Choose a **Channel**.
   * Tick **Enable Welcome**.
4. Click **Save**.
5. Do the same in the **Goodbye** card if you'd like goodbye messages too.

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fgit-blob-03c3c96626f2fc1b37ec01ddefefca320b81e102%2Fwc-01.png?alt=media" alt="Welcome &#x26; Goodbye → write a welcome Message with {user.mention} → choose a Channel → tick Enable Welcome → Save."><figcaption><p>Welcome &#x26; Goodbye → write a welcome Message with {user.mention} → choose a Channel → tick Enable Welcome → Save.</p></figcaption></figure>

### Add a welcome card

{% hint style="info" %}
💎 [**Mochi Prime**](https://docs.mochi.bot/mochi-prime/what-is-mochi-prime.md): welcome and goodbye cards are part of **Mochi Prime**.
{% endhint %}

{% stepper %}
{% step %}
Click the **card preview** at the top of the Welcome (or Goodbye) section.
{% endstep %}

{% step %}
Tick **Send a welcome card** (or **Send a leave card**).
{% endstep %}

{% step %}
Edit the **Title** and **Subtitle**. Variables work here too.
{% endstep %}

{% step %}
*(Optional)* Open **Background** to upload your own image or pick a color, and **Foreground** to change the accent color.
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}
{% endstepper %}

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fgit-blob-abfd9ca5bb2f6bf21f38e362232d076a819a3c97%2Fwc-02.png?alt=media" alt="Click the welcome card preview → tick Send a welcome card → change the Title → upload a Background → Save."><figcaption><p>Click the welcome card preview → tick Send a welcome card → change the Title → upload a Background → Save.</p></figcaption></figure>

### Add a welcome DM and welcome role (in Discord)

The welcome DM and welcome role are set up from Discord:

{% stepper %}
{% step %}
Type `/welcome setup`. Mochi opens her **Welcome Setup** panel.
{% endstep %}

{% step %}
Use **Choose a welcome channel** and **Choose a welcome role**.
{% endstep %}

{% step %}
Click **Edit Message** to change the welcome message, or **Edit DM** to write the private message new members receive.
{% endstep %}

{% step %}
Click **Send Test Welcome** to see it in action.
{% endstep %}
{% endstepper %}

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fgit-blob-d04fabcf6622e302bda76f37f7fee5be20a1f184%2Fwc-03.png?alt=media" alt="In Discord, /welcome setup → choose a welcome role → Edit DM → write a message → Send Test Welcome."><figcaption><p>In Discord, /welcome setup → choose a welcome role → Edit DM → write a message → Send Test Welcome.</p></figcaption></figure>

***

## <mark style="color:$primary;">Commands</mark>

### `/welcome setup`

Opens Mochi's **Welcome Setup** panel, where you can choose the welcome channel and role, edit the welcome message and DM, and send a test.

### `/leave setup`

Opens the **Leave Setup** panel, where you can choose the goodbye channel, edit the goodbye message, and send a test.

### `/toggle welcome dm`

Opens a small pop-up to switch welcome DMs on or off.

***

## <mark style="color:$primary;">Settings explained</mark>

### Enable Welcome / Enable Goodbye

Turns the message on or off. Your message, card and channel are kept either way.

### Message

The text Mochi posts. You can format it with **bold**, *italics* and more, add emoji, and type `{` to insert a variable. Handy ones for welcomes:

| Variable               | Shows                                |
| ---------------------- | ------------------------------------ |
| `{user.mention}`       | Pings the new member, like @Sakura   |
| `{user.name}`          | Their display name, without a ping   |
| `{server.name}`        | Your server's name                   |
| `{server.memberCount}` | How many members your server now has |

> Example: *"Welcome to {server.name}, {user.mention}! You're member #{server.memberCount} 🎉 Grab your roles in #roles."*

👉 See every variable in the [Variables reference](https://docs.mochi.bot/reference/variables.md).

### Message Template

A saved, designed message, with embeds, images and buttons. If you set both a **Message** and a **Message Template**, Mochi sends both together. Choose one from the list, pick **Create** to make a new one, or click **edit** to change the one you've chosen.

### Channel

Where the message is posted. For welcomes, a dedicated `#welcome` channel works well. For goodbyes, many servers use a staff-only channel.

### Welcome card

An image Mochi attaches to the message, with the member's avatar in the middle.

| Setting                                         | What it does                                                                                           |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| **Send a welcome card** / **Send a leave card** | Turns the card on or off                                                                               |
| **Title**                                       | The big text, by default *"{user.name} has joined the server!"* or *"{user.name} has left the server"* |
| **Subtitle**                                    | The small text underneath, by default *"Member #{server.memberCount}"*                                 |
| **Upload Background**                           | Your own background image (PNG, JPEG or GIF)                                                           |
| **Background Opacity**                          | How see-through the background is                                                                      |
| **Background Color**                            | The color behind everything                                                                            |
| **Foreground Color**                            | The accent color of the card's panel                                                                   |

### Welcome DM

A private message sent to each new member, great for rules, a quick guide or a friendly hello. Set it with **Edit DM** in `/welcome setup`. Plain text or a [Message Template](https://docs.mochi.bot/automation-and-tools/message-templates.md) both work. Leave it empty to send no DM.

{% hint style="info" %}
💡 **Good to know:** Welcome DMs start **off**. Use `/toggle welcome dm` to switch them on. Some members block DMs from servers, so keep anything important in your welcome channel too.
{% endhint %}

### Welcome role

A role every new member gets automatically, like `@Member` or `@Newcomer`. Choose it with **Choose a welcome role** in `/welcome setup`.

{% hint style="warning" %}
Mochi's role needs to sit **above** the welcome role in **Server Settings → Roles**, or she can't give it out. See [Roles & Permissions](https://docs.mochi.bot/getting-started/roles-and-permissions.md).
{% endhint %}

***

## 🌱 <mark style="color:$primary;">Best practices</mark>

* **Say hello by name.** `{user.mention}` makes new members feel seen.
* **Point them somewhere.** Mention your rules, roles or intro channel so they know what to do next.
* **Keep it short.** A warm line or two beats a wall of text.
* **Make the card yours.** Upload a background that matches your server's look.
* **Keep goodbyes gentle**, or send them to a staff channel if you'd rather not make a fuss.
* **Test it** with **Send Test Welcome** before your next member arrives.

***

## 🛠️ <mark style="color:$primary;">Troubleshooting</mark>

<details>

<summary>No welcome message appears.</summary>

* Is **Enable Welcome** ticked, with a **Channel** chosen? Did you click **Save**?
* Mochi needs **View Channel**, **Send Messages**, **Embed Links** and **Attach Files** (for cards) in that channel.
* If you see *"Welcome channel is not set up"*, choose a channel first. *"Welcome channel must be text-based"* means you picked a voice channel or category.

</details>

<details>

<summary>The welcome role isn't given.</summary>

Move **Mochi!** above that role in **Server Settings → Roles**, and check she has **Manage Roles**.

</details>

<details>

<summary>New members aren't getting the DM.</summary>

* Check welcome DMs are switched on with `/toggle welcome dm`.
* The member may have DMs from servers turned off. Sadly, Mochi can't get around that.

</details>

<details>

<summary>My variables show up as plain text.</summary>

Check the spelling: variables are case-sensitive, like `{server.memberCount}`. Typing `{` and picking from the list avoids typos.

</details>

{% columns %}
{% column width="33.33333333333333%" %}

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fgit-blob-fa50d1e36c23a82929fe13087b832029ac007239%2Fcta-support-kagami-square.jpg?alt=media" alt="Kagami, ready to help" width="200"><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="66.66666666666667%" %}
**Need some help? 🩷**

Pop into the Mochi Support Server and we'll happily take a look with you.

<a href="https://discord.gg/krsFJDS2hA" class="button primary" data-icon="discord">Join the Support Server</a>
{% endcolumn %}
{% endcolumns %}

***

## ✨ <mark style="color:$primary;">Why it matters</mark>

When people feel noticed in their first minute, they're so much more likely to say hello and stick around! 💛

Every great friendship starts with "hi!" 👋
