# 4. Configure the auto role bot

Invite the bot into your server with this link: <https://discord.com/api/oauth2/authorize?client_id=775025797034541107&permissions=300944400&scope=bot%20applications.commands>

![](/files/Q7PczjsyofDiG1lQoa6G)

![](/files/NJbVHktlNGJtuaupDw0m)

One done, get on your server, and put the role of the bot on the top of the role you want to give to your users. Like this:&#x20;

![](/files/yc6AxhV01M1arcxolTWH)

Save changes.&#x20;

Next, go into a secret channel and type the following command: \
/link YOURCHANNEL THEROLE&#x20;

![](/files/UcPwePBIm92t5Z9r7rf1)

Press enter.&#x20;

The bot will confirm that the action is done:&#x20;

![](/files/pJ9wOVyB5zPpAsx4IGHm)

You are all set up ! Ensure and start the script.&#x20;

{% hint style="success" %}
You're done ! Enjoy.&#x20;
{% endhint %}


---

# 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://dp-store.gitbook.io/force-discord-presence/guides/4.-configure-the-auto-role-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.
