# Creating a Discord bot

* Create a Discord app, a bot and add it to your Discord server. Do **NOT** add the bot to more than one Discord server. Ensure that bot has **Administrator** rights when it is created and also that it has an **Administrator** role in your Discord server (i.e. can manage roles, etc.). See this video for instructions (from 1:57-4:30) <https://youtu.be/aO4XokwEx6Q?t=117>
* Adjust Bot setting to give it proper access by clicking on the Bot on the left and enabling **PRESENCE INTENT** and **SERVER MEMBERS INTENT**

<figure><img src="https://cdn.document360.io/f93693fd-bbea-47dd-a113-16646e95160a/Images/Documentation/image-1659651647134.png" alt=""><figcaption></figcaption></figure>

* Once the bot is in your Discord server, go to Server Settings->Members and make sure that the bot has a role that has administrator role assigned with access to all permissions (such as Manage Roles, Kick Users, Send Messages, etc.)
* Copy the bot token and enter it in the Streams Manager. Please note that the bot does not need to show as online for it to work
* Click the Test button to test the settings. Test will attempt to fetch members of your discord server and add a role to one of the users


---

# 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-notifications/discord-settings/creating-a-discord-bot.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.
