> For the complete documentation index, see [llms.txt](https://docs.mongenscave.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mongenscave.com/premium-products/discordlink/feature-help/setup-discord-bot.md).

# Setup Discord Bot

## Create a New Discord Bot&#x20;

Follow the guide carefully, as the bot requires specific permissions and intents to function smoothly!

1. Log into the [Discord Developer Portal](https://discord.com/developers/applications) and click the '**New Application**' button in the top right corner.
2. Give your bot a name of your choice (you can edit it later if needed).
3. After creating the bot, you'll find yourself in a dashboard. Here, select the 'Bot' option in the sidebar, scroll down slightly, and enable all intents for the bot under the 'Privileged Gateway Intents' section (Presence Intent, Server Members Intent, Message Content Intent).
4. Next, go to the 'OAuth2' option in the sidebar, then within it, go to 'OAuth2 URL Generator.' Check the following options: 'bot,' 'applications.commands.' Scroll down a bit and assign the desired permissions to the bot (Recommended: Administrator).
5. On the same page, scroll all the way down, and use the provided link to invite your Discord bot to the server. B.1: In the Developer Portal, return to the 'Bot' section if you need your bot’s token, and there you can either copy it or request a new one (Reset Token). Place the provided Discord bot token in the config.yml file under the 'discord' section in the 'token' field. (Fill in the other fields as well. Important: guild-id)

{% hint style="success" %}
If you have any questions or need help, feel free to contact us on our [Discord server](https://dc.mongenscave.com/)!
{% 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.mongenscave.com/premium-products/discordlink/feature-help/setup-discord-bot.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.
