Discord Linking
PayNow allows you to link your Discord server as an integration, similar to game servers. This enables automated role management for purchases and subscriptions through Deliverable Actions.
Step 1: Creating a Discord Server Integration
Navigate to Integrations > Game Servers in your PayNow dashboard.
Click "Add a Game Server" and select Discord from the available integrations on step 3.
Give your server a name (e.g., "Discord Server").
Click Next to proceed.
Step 2: Connecting the PayNow Bot to Your Discord Server
Click the "Add Bot" button.
Authorize the PayNow Bot to join your Discord server.
Make sure the bot's role is above the roles you want it to manage.
After the bot has been added, run the following command in any channel:
Once registered, your Discord server will be linked to PayNow.
Click Complete to finish the setup.
Step 3: Assigning Discord Roles in Deliverable Actions
After linking your Discord server, you can automate role assignments through the Deliverable Actions when setting up a product.
Navigate to Content > Products in your dashboard.
Click "Create Product" or edit an existing product.
Scroll down to the Deliverable Actions section.
Click "Add Action" and select "Assign Discord Role".
Choose your Discord Game Server from the dropdown.
Select the role that will be assigned upon purchase.
Click Save to update the product.
Customers who purchase this product will automatically receive the selected role in your Discord server.
Step 4: Managing Discord-Based Purchases
Roles are only removed when a package expires if an On Expiry Action is set to remove them.
Manually revoking access to a package will not remove the assigned Discord role.
To manually remove a role from a user, you need to do it directly in Discord.
FAQs
Can I link multiple Discord servers?
Yes! You can create multiple Discord server integrations, just like game servers.
What permissions does the bot need?
The bot requires Manage Roles permission to assign roles and Read Messages to process commands.
Note: The required permissions are automatically requested when inviting the bot, so no manual adjustments should be needed unless permissions are later changed in Discord.
Will roles be removed if I manually revoke a package?
No, roles will only be removed when the package expires, provided an On Expiry Action is set.
What happens if a user leaves the server?
If a user leaves and rejoins, the bot will automatically reassign their role as long as their package is still active and has not expired. It syncs their role to match the current state of their package.
Last updated