Assign roles to users in discord server based on the membership level or subscription level in Woocommerce Plugin using WordPress OAuth Single Sign-On plugin and WordPress Discord Integration Addon (Discord Role Mapping). When an user registers on your website, he will be taken to the Woocommerce membership levels page, where he can choose a level or plan. The user will be assigned a role in your Discord Server based on the membership level they choose during registration.
For more info on Discord Role Mapping Integration Contact us at discordsupport@xecurify.com
Steps to Configure Woocommerce with Discord (Based on MemberShip level in Woocommerce) with miniOrange OAuth Single Sign-On plugin into WordPress (WP)
Step 1: Configure WordPress Role Mapping in Discord Server :
Follow the steps below to configure Woocommerce integration with Discord server using Discord Integration Addon in WordPress
Configure Discord Role Mapping Integration in WordPress
- First and importantly, create a Discord custom application. You can refer to the guide to setup custom application from Discord.
- Now, Navigate to bot tab from left hand side menu. Click on the Add Bot button.
- Copy the Token and paste the token in Bot Token Key field.
- Now, Open your Discord server, right-click on the server name, then select Copy ID. Paste it in the Guild ID field.
- Go to URL generator under OAuth2 section and select the following permissions.
- Copy and paste the created URL into a new tab. You will be prompted to join a discord server. Choose a server and give it administrator privileges.
Step 2: Assign roles to users in Discord server based on membership level in Woocommerce
- Create a Membership Level on Woocommerce plugin according to the roles you want to assign to your users in Discord server.
- Navigate to Server Settings on your Discord Server.
- Go to Roles tab and click on Create Role button.
- Enter the Role Name same as the name of membership level on your Woocommerce plugin and enter other details. Save the settings.
- Shift to Permissions tab and enable Manage Roles checkbox.
- Now, Right click on the Role name and copy the Role ID from copy ID button.
- In the field that corresponds to the Role name, paste the Role ID.
- Now, when a user registers on your website using Discord. He'll be taken to the page for Membership Levels. The user can proceed after selecting a membership level from the available options. According to the membership level selected at registration on your website, each user will be granted the corresponding role in the Discord Server.
- You can download OAuth Single Sign-On plugin for discord Woocommerce role mapping integration using the following link.
Additional Resources
If you are looking for anything which you cannot find, please drop us an email on discordsupport@xecurify.com