> For the complete documentation index, see [llms.txt](https://mava.gitbook.io/mava-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mava.gitbook.io/mava-docs/getting-started/integration-setup/discord-setup/automatically-add-users-or-all-users-with-a-role-into-a-discord-private-thread.md).

# Automatically add users or all users with a role into a Discord private thread

Mava is designed for your team to manage and track all of your tickets across multiple platforms from one dashboard.

As a Discord admin, you will be able to see private threads created with each new ticket by hovering over the ticket channel with your curser. You can then click into any of the private threads to see more details.

<figure><img src="/files/Q012RaBNitvPOufAKQX7" alt=""><figcaption></figcaption></figure>

If you want to automatically add a Discord User or a group of users with the same Role, you can do this within the [Chatbot Builder](https://dashboard.mava.app/dashboard/admin/chatbot) section of Mava.

To add a user, first copy their User ID in Discord by right clicking on the user and selecting ‘Copy ID’ from the list.

<figure><img src="/files/Dj6wpRVrjlWFW1NgMQsQ" alt=""><figcaption></figcaption></figure>

Back in the Mava dashboard under Settings > Bot Setup you can then add this User ID within any message section in the following format:<@USER\_ID>

If you don’t include the <@   > then the user ID will not be picked up correctly by Discord.

Within Mava the correct format for adding a User would look like this:

<figure><img src="/files/HWTJZ8Qt0yLJGVc654ud" alt=""><figcaption></figcaption></figure>

If you want to add a role, you can follow the same process, but you need to format it as follows:

<@\&ROLE\_ID>

If you would like to link a channel or add emojis you can use the following formats:

| **Type**                | **Required Format** |
| ----------------------- | ------------------- |
| User                    | <@USER\_ID>         |
| User Nickname           | <@!USER\_ID>        |
| Channel                 | <#CHANNEL\_ID>      |
| Role                    | <@\&ROLE\_ID>       |
| Custom Emoji            | <:NAME:ID>          |
| Custom Emoji (Animated) | <:a:NAME:ID>        |


---

# 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, and the optional `goal` query parameter:

```
GET https://mava.gitbook.io/mava-docs/getting-started/integration-setup/discord-setup/automatically-add-users-or-all-users-with-a-role-into-a-discord-private-thread.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
