> For the complete documentation index, see [llms.txt](https://docs.team-panel.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.team-panel.com/en/modules/discordbot/role-sync.md).

# 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>
