> For the complete documentation index, see [llms.txt](https://docs.guild.xyz/guild/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guild.xyz/guild/how-to-setup-rewards/discord-role.md).

# Discord role

Grant Discord server roles automatically when members meet requirements. Perfect for creating tiered access, exclusive channels, and community recognition.

#### Setting up Discord role rewards

**1. Connect your Discord server**

* In the role editor, click **"Add reward"** and select **Discord**
* Select your Discord server from the already added server list
* Or add a new one (see Discord setup guide: [How to add Discord](/guild/how-to-add-discord.md))
* Create a new Discord role or select an existing Discord role
* Click **"Add reward"**

{% hint style="info" %}
The Guild bot must be on your selected Discord server to assign/remove roles. See how to add the Guild bot to your server here: [How to add Discord](/guild/how-to-add-discord.md).
{% endhint %}

#### How Discord role rewards work

* Members see the Discord role reward but cannot claim it until they meet requirements
* Once qualified, members click **"Claim"** to receive the Discord role
* Role assignment happens automatically but may take 1-2 minutes due to Discord rate limits
* Members see a timer showing estimated assignment time during busy periods
* If members lose role access, the Discord role is automatically removed

#### Requirements for setup

* Guild bot must be added to your Discord server with "Manage Roles" permission
* The Guild bot's role must be positioned higher than roles it needs to assign


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.guild.xyz/guild/how-to-setup-rewards/discord-role.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
