# 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.
