# Discord integration settings

Streams Manager offers Discord integration in the following ways:

* Discord member management - Streams Manager will kick users that have let their subscriptions expire after a set time period
* Discord role management - Streams Manager will keep user roles in sync based on their plan and Plex server where they are currently sharing libraries

{% hint style="warning" %}
Permanent users in Streams Manager are excluded from Discord role sync.
{% endhint %}

This integration works through the use of bots so you will have to create a bot and obtain a bot token. You can use the same bot you use for Discord notifications as described in [Creating a Discord bot](/streams-manager/configuration/settings/discord-notifications/discord-settings/creating-a-discord-bot.md).

The settings are as follows:

* Discord sync enabled - indicates whether integration with Discord server is enabled. When enabled, new users will be assigned a role and expired users will have their role removed and optionally kicked out of the Discord server.
* Bot token - Discord bot token
* Subscriber role name - name of the role to assign to Discord users that are currently active and on a non-trial plan
* Trial role name - name of the role to assign to Discord users that are currently active and on a trial plan
* Kick users - indicates whether to kick users from the Discord server after their subscription has expired
* Kick after days - specifies for how long (in days) user's subscription must be expired before they are kicked from the Discord server. Set to 0 for immediate removal


---

# 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://streamsmanager.gitbook.io/streams-manager/configuration/settings/discord-integration-settings.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.
