This extension allows you to link Discord roles to user accounts on your platform, enabling automatic role assignment based on user actions or purchases.
📦 Configuration
1. Create a Discord Bot
If you don't have a Discord bot yet, follow these steps to create one:
-
Go to the Discord Developer Portal.
-
Click on New Application.
-
Give your application a name and click Create.
-
Navigate to the Bot tab and click Add Bot.
-
Customize your bot’s settings and copy the Bot Token.
-
Navigate to the OAuth2 tab and copy the Client ID and Client Secret.
-
In the OAuth2 → Redirects section, add your callback URL:
- Default:
https://yourpaymenterurl.tld/linkedroles/callback
- Custom path:
https://yourpaymenterurl.tld/yourcustomurl
- Default:
-
In the General Information tab, set the Linked Verification URL to:
- Default:
https://yourpaymenterurl.tld/linkedroles
- Custom path:
https://yourpaymenterurl.tld/yourcustomurl
- Default:
Store the Bot Token, Client ID, and Client Secret securely, as you will need them during the Paymenter configuration.
2. Configure the Extension
- Navigate to the Extension Settings in your admin panel.
- Enable the extension.
3. Invite Your Bot
Use the OAuth2 URL Generator:
- Select the scopes:
bot
,applications.commands
. - Under bot permissions, choose only the required ones (e.g.,
Manage Roles
). - Generate the invite link and add the bot to your Discord server.
4. Set Up Linked Roles in Discord
- Go to your server settings → Linked Roles.
- Click Add Requirement.
- Select your bot/application.
- Define the condition for granting the role (e.g., account verification).
- Assign the corresponding role to be granted upon successful verification.
To display a badge next to a user’s name, ensure the role is visible in the channel’s role settings.
5. Configure in Paymenter
-
Linked Role Settings:
- In your Paymenter admin panel, navigate to Linked Role Settings.
- Click New linked role setting.
- Input the Bot Name, Discord Client ID, and Discord Client Secret.
- The Client Secret will be securely hidden.
-
Create Linked Role Setting:
- In the General section, assign a recognizable Bot Name for internal management.
-
Sync the Bot:
- Go to the Extensions tab.
- Click Sync Now to synchronize the bot credentials.
- Select your configured bot from the list.
-
Select the Bot:
- Return to the Extension Settings.
- From the dropdown, select the bot to be used for role linking.
🧪 Claiming the Role (User Flow)
Once set up, users can claim their role via the following process:
- Link their Discord account through the Paymenter dashboard.
- Join the Discord server.
- Right-click on the server icon → Linked Roles.
- Follow the on-screen verification to finalize their role claim.
✅ You're Done!
Your customers can now securely link their Discord account to their Paymenter profile and automatically receive a Discord role upon purchase.
Ideal for communities that wish to reward verified users with exclusive access, perks, or premium statuses.