# Discord Servers

***

### **Step 1: Creating a Discord Server Integration**

1. Navigate to **Integrations > Discord Servers** in your PayNow dashboard.
2. Click the **“Add Discord Server”** button.
3. A window will appear with instructions to:
   * **Add the official PayNow Discord Bot** to your Discord server.
   * Copy the provided **registration command** (e.g., `/pnregister YOUR_SERVER_KEY`) and run it on your Discord server.
4. Once completed, the Discord server will be **linked** to your PayNow account and will appear in the list.

💡 **If the server shows as "Not linked", click on it again to open the linking UI and repeat the registration process.**

***

### **Step 2: Connecting the PayNow Bot to Your Discord Server**

1. Once you've **created a Discord server entry**, it will be listed with the status **“Not linked”**.
2. Click on the **server entry** to open the **Discord Server details window**.
3. In the window, click the **“Add Bot”** link to invite the **official PayNow Discord Bot** to your server.
4. **Authorize the bot** to join your Discord server by completing the Discord authorization process.
5. Ensure the **bot's role** is positioned **above the roles you want it to manage** within your server’s role hierarchy.
6. After the bot is successfully added, **copy the provided registration command** (e.g., `/pnregister YOUR_SERVER_KEY`).
7. Run the command in **any text channel** on your Discord server.
8. Once registered, your Discord server will be **linked to PayNow**.

💡 **If the server shows as "Not linked", click on it again in the list to open the linking UI and repeat the registration process.**

***

### **Re-linking or Deleting a Discord Server Connection**

* **Not Linked:** If the Discord server is not properly linked, it will appear as **“Not linked”** in the list. Click on the server entry to open the **linking UI** and follow the instructions to complete the registration.
* **Already Linked:** If the server is successfully linked, clicking on the server entry will open a **details window** showing the linked server information. This window provides options to:
  * **Delete:** Remove the server connection from your PayNow account.
  * **Close:** Exit the details window without making changes.
* **Unlinking a Server:** To completely remove the server connection, click the **Delete** button. This action will fully unlink the Discord server from your PayNow account.

***

### **Tips & Notes**

* **Bot Role Positioning:** Ensure the bot’s role is placed **above the roles** it needs to manage within your Discord server’s role hierarchy.
* **Re-linking a Server:** If needed, you can attempt to re-link a server by opening the **linking UI** from the **Discord Servers list** and following the instructions again.
* **Checking Server Status:** The server list will display your Discord server name and Discord Server ID if it is successfully linked. If it shows as **“Not linked”**, follow the instructions to complete the registration process.


---

# 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://guides.paynow.gg/integration/discord-servers.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.
