> 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/modules/discordbot/rollen-sync.md).

# Rollen-Sync

{% hint style="success" %}
Um den Rollen-Sync nutzen zu können, müssen deine Teammitglieder zunächst ihren TeamPanel-Account mit [**Discord verknüpfen**](https://account.team-panel.com/connections)**.** Ab dem **Pro-Plan kannst du dies von allen Teammitgliedern voraussetzen** und somit sicherstellen, dass Rollen-Sync jederzeit zuverlässig funktioniert.
{% endhint %}

{% hint style="danger" %}
**Wichtig:** Die Rolle des Discord-Bots muss über den Rollen stehen, die der Bot selbst vergeben kann.
{% endhint %}

Der Rollen-Sync bietet dir und deinem Team eine organisierte Rollenzuweisung: Teammitglieder erhalten automatisch eine bestimmte Rolle in Discord, sobald die Rolle im Team-Panel aktualisiert wurde. Auf Wunsch können definierte Discord-Rollen auch die Gruppen eines Mitglieds in deinem Team überschreiben. Dabei ist es wichtig, dass du diese Funktion mit Vorsicht verwendest um ungewollte Gruppenänderungen zu verhindern.

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

{% hint style="info" %}
Für Teams die vor dem 08. Juni 2025 erstellt wurden ist diese Funktion standardmäßig deaktiviert und muss manuell aktiviert werden.
{% endhint %}


---

# 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://docs.team-panel.com/modules/discordbot/rollen-sync.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.
