Create an application inside your discord account: URL: https://discord.com/developers/applications
Click the `OAuth2` link at your left-hand side navigation panel
Copy the client-id
Copy the secret
If the paidmembershippro plugin is already installed and pages are created you will see `Redirect URL` in the plugin settings, copy the profile URL and paste in the `Redirect URL` setting of the discord account.
Save your details at this stage.
Again see your Left hand side navigation panel and see `Bot`
Upon creating the bot copy the `Bot Token` and paste it inside WP plugin settings.
Now you need to get the Guild ID of your server, for this, you need to go under `User Settings` -> `Advanced` -> `Enable Developer Mode`.
Now you can right-click on the left-hand side of your screen and see at the bottom of the panel you will see `Copy ID`, this is your Guild ID
When all settings are provided, a button with the text `Connect Your Bot` will appear.
Click on it and you will be redirected to the Discord page.
Remember you need to select only that server on this page of which guild ID you copied in the above stage.
Click connect and you are connected !! Hurray.
This plugin provides the following features:
Allow any member to connect their discord account with their PaidMebershipPro membership account.
Members will be assigned roles in discord as per their membership level.
Member’s roles can be changed/remove from the admin of the site.
Member’s roles will be updated when membership expires.
Member’s roles will be updated when membership canceled.
Admin can decide what default role to be given to all members upon connecting their discord to their membership account.
Admin can decide if membership should stay in their discord server when membership expires or is canceled.
Admin can decide what default role to be assigned when membership is canceled or expire.