> For the complete documentation index, see [llms.txt](https://docs.dazai.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dazai.app/music-commands/settings/setting-up-custom-messages.md).

# Setting Up Custom Messages

Sometimes, you want to welcome a new member to your discord server or change what Dazai says when you level up. You can do these with **Message Events**. To start off, there are currently 4 implemented events:

1. &#x20;Join Message (`join`)
2. DM Message on Join (`joinDM`)
3. Leave Message (`leave`)
4. Levelup message (`levelup`)

With 5 custom variables

```
{USERNAME}	The user's username
{MENTION}	Pinging the user
{ID}	The ID of the User
{OLDLVL}	The level the user just passed (Only for Levelup Message)
{NEWLVL}	The level the user just got to (Only for Levelup Message)
```

To set the messages, you just need to do :

```
daz settings messageevent
```

This will enter the MessageEvent setup and guide you through setting up message events!

![](/files/-MVIgpGoPNCzy4TqxnqA)

![This is what join messages will look like if the same setup steps were followed](/files/-MVIgstlzVmiavQu_3V3)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dazai.app/music-commands/settings/setting-up-custom-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
