# Discord Conditions To Buy

[Fair.xyz](http://Fair.xyz) has many ‘Conditions to Buy’ which you can add to your collections. These conditions will give you bespoke control on who and who can’t mint your NFTs.

One category of these conditions is built around “Discord Roles”.

This means that you can add a Condition on who can mint your NFT based on what role they have, or don’t have, within your Discord community.

In order to implement this condition, you’ll need two key pieces of information from Discord:

* Your Server ID
* Your role(s) ID(s)

Let’s show you have to find these.

### Enabling Developer Mode

1. Open Discord and log in to your account.
2. Click on the User Settings icon in the bottom left corner of the Discord app window. It looks like a gear.

<figure><img src="/files/SW6AZhNpZ56V9XrKmlAQ" alt=""><figcaption></figcaption></figure>

3. Scroll down to the "Advanced" section and look for the option that says "Developer Mode." Toggle the switch to turn it on.

<figure><img src="/files/GXB7SMJru7DYRSIGKrho" alt=""><figcaption></figcaption></figure>

‘Developer mode' is now activated. We can go ahead and find our Server ID.

### Locating and adding Server ID to [Fair.xyz](http://Fair.xyz)

To find and copy your Server ID, simply do the following:

1. Go to the server for which you want to find the ID.
2. Right-click on the server name in the server list on the left-hand side of the screen.
3. In the context menu that appears, click on "Copy Server ID."

<img src="/files/oUM0NSsKFCbzNFeLdHTl" alt="" data-size="original">

The server ID will now be copied to your clipboard and can be pasted on [Fair.xyz](http://fair.xyz/)

4. Paste this ID in the ‘Discord Server ID’ field

![](/files/6SkkeqcQPvkDUOCFkwX0)

### Locating and adding ‘Role ID’ to [Fair.xyz](http://Fair.xyz)

Next you’ll need to add a Role ID.

1. Go to the server where the role is located.
2. Click on the down arrow next to the server name at the top of the screen to open the server menu.
3. Select "Server Settings" from the dropdown menu.
4. In the left-hand menu, click on "Roles."

![](/files/p7WT5hQlcWVY2CskrQBT)

5. Find the role that you want to find the ID for and click on the role's name.
6. In the Role Settings menu, scroll down to the "Role ID" section.
7. Click on the "Copy" button to copy the role ID to your clipboard.

<figure><img src="/files/1sEEEqR8w9EbOt9Iez6O" alt=""><figcaption></figcaption></figure>

8. You can now paste the role ID into the ‘Discord Role ID’ field

![](/files/qCLjrpCUWbfwTvJUggUE)


---

# 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://docs.fair.xyz/miscellaneous/discord-conditions-to-buy.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.
