# Role Sync

{% hint style="danger" %}
The role of the Discord bot must be above the roles that the Discord bot should be able to assign.
{% endhint %}

{% hint style="info" %}
Your team members have to [link their Discord account](https://account.team-panel.com/connections) to their TeamPanel account. From the starter plan, you can require this for all new team members.
{% endhint %}

Role sync allows you and your team to assign roles in an organised way by automatically giving team members a specific role in Discord as soon as the role is updated in the team panel. To set the roles, simply go to ‘Management > Discord Bot’ and set a role for each group there.

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


---

# Agent Instructions: 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.team-panel.com/en/modules/discordbot/role-sync.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.
