Skip to content

younes-dro/discord-addons-documentation

 
 

Repository files navigation

Connecting the ExpressTechSoftWares Add-ons to the Discord server

This documentation provides you with an introduction to the ExpressTechSoftWares Discord Add-ons. It is intended for website owners who wish to offer their users the ability to connect their accounts to the Discord server. The ExpressTechSoftWares Add-ons make it possible to link Discord roles and:

  • Memberships: if you offer a subscription system ( PMPRO, MemberPress, ...)
  • Courses: if you have installed an LMS ( LearnDash, LearnPress, ...)

The first step requires creating a Discord Application and collecting the data necessary to make the Add-ons work correctly.

Step1: New Application

Go to: https://discord.com/developers/applications

new-app

Click on New Application :

new-app2

Give a relevant name to your application and click on Create .

Step2: Create the Bot

Now you will create a Discord Bot, which will be responsible for managing Discord roles for users: assign roles, delete roles...

Click on the Bot menu:

new-app3

Copy the Bot Token and save it, we will need it later.

new-app4

Step3: Client ID and Client Secret

Go to : OAuth2 menu :

new-app5

Copy the Client ID and the Client Secret and save them as you did for the Bot Token.

Step4: Server ID

To have the server ID, First You will activate the developer mode.

Click on the “User Settings” gear in the bottom left of the screen:

new-app6

Advanced :

new-app7

Enable Developer Mode

new-app8

Now click on the server icon in the left-hand side of discord.com screen and copy the server ID :

new-app9

Save the Server ID as you did for the Bot Token , Client ID and Client Secret.

Step5: Connect the BOT

All Discord add-ons have the same user interface.

After installing and activating an Add-On, you will have a submenu: Discord Settings.

in this example we will take LearnDash LMS as an example :

new-app10

Now you fill in the form with the data saved before: Client ID, Secret ID, Bot Token, Server ID.

Also, you need to copy/paste the URLs: :

  • Redirect URL.
  • Admin Redirect URL Connect to bot

Go to : OAuth2

new-app11

Add the URls and click 'Save Changes'.

Return to the AddOn dashboard and Click ‘Save Settings’.

After clicking on 'Save Settings', and if you have followed the steps correctly, you will have a new button that appears that you are invited to connect the Bot :

new-app13

You also noticed the appearance of a new sentence:
Make sure the Bot ExpressTechSoftWares App BOT have the high priority than the roles it has to manage. Open DiscordServer.

Of course, the sentence contains the name of your Bot you named.

Now click on the red button 'Connect your Bot'. you will be redirected to Discord authentication :

new-app14

Click Authorize.

You will be redirected to the Admin page.

Congratulations ! you have successfully connected the bot:

new-app15

Also, you will be notified of the arrival of the Bot :

new-app16

Step6: Give Bot High Priority

For the Bot to handle roles, it must have high priority.

Go to Server Settings

new-app17

Drag & Drop Bot on top of all Roles and save changes:

new-app18

To verify that the add-on works as expected, go to: Role Mappings.

you should see the discord roles:

new-app20

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published