Link Discord
Would you ever imagine, if you could have your WHMCS Clients verified with a Discord account and give them, in real-time, roles inside your guild? Now you can! By an affordable price.
Discord and related names, marks, emblems and images are registered trademarks of their respective owners.
Screenshots
Installation
Download the release from the latest e-mail you received;
Discord
Go to the Discord Developer Portal and create a new Application (if you have already, skip this step);
Click in the
OAuth2
tab, copy and save theClient ID
and theClient Secret
(if you don't have the button, reset it);Add a new Redirect using the URL that you saved in WHMCS - Step 3 (skip this step if you haven't set up the WHMCS side yet);
Click in the
Bot
tab, create the Bot if you don't have and save theToken
(if you don't have the copy button, reset it). For security reasons, ensure thatPublic Bot
it is off;Add the Bot, by simply going to this URL and editing in the Search Bar the
CLIENTID
to yours. Select the desired Guild, click on Continue and Authorize (you need to do this for every Guild you wanna add). Don't change the permission code so that it can work with other features.
Backend
This is the best solution to use if you use cPanel on Shared Web Hosting.
Open your cPanel, search for
Setup Node.js App
and open it;Click on New Application, Setup like below (you can choose any domain) and Create;
Upload the
BACKEND
folder to/AndrezzzLinkDiscord
(normally, when you open FTP/File Manager, it opens thepublic_html
folder, you need to go back);Edit the
config.json
file, with the information you gathered before in the Discord Installation and change theport
to3000
;Go back to the Application that you just created, refresh the page and click on
Run NPM Install
;Click on
Restart
and then test it by clicking theOpen
button, if it doesn't redirect to my Website, then some mistake was made. Please check every single step. If it's all working, you can copy the URL in the Search Bar and save it to WHMCS - Step 3.
WHMCS
Upload the
modules
folder to your WHMCS root folder;Go to
Setup -> System Settings -> Addon Modules
and active the moduleAndrezzz - Link Discord
;Go to the configuration of the Addon and fill out all the information required (copy the URL given in
Discord OAuth2 Redirect
and go to the Discord - Step 3). Please check the FAQ, if you have any questions;Go to
Addons -> Andrezzz - Link Discord
and add to the table the desired roles for each type you want. Please check the FAQ, if you have any questions.
You're pretty to go. Have a good use of the module, and thank you once again 😊!
Troubleshooting
For Commum Issues, kindly check the Frequent-Asked Questions (FAQ). if you don't find it, check the options below to troubleshoot it.
WHMCS
This is the easiest way to debug the module inside the WHMCS.
Go to
System Logs -> Module Log
and activate it if you don't have it already and try to repeat the issue;If you find any error similar to the one below, it's most likely a firewall issue. Please check the FAQ;
If you find any error similar to any below, it's most likely a backend issue. Please check the FAQ. For the first case and for the second case;
If you find any error similar to the one below, it's a Backend error. First, check if the FAQ, have anything about it. If not, go to Backend Troubleshooting;
Backend
Edit the file
config.json,
change the Settingdebug
totrue
and restart the Bot;
Report
As a final step, if you don't find the solution, please report it to me with the maximum information as possible. Please copy the following template, edit and send it to me using one of my Contact.
Frequent-Asked Questions (FAQ)
Notifications
Currently, there are two types of Notifications:
Type Related: when a Hook is triggered, a personalised and translatable notification will be sent, based on the e-mail client's preference. At the moment, currently supports InvoicePaid, InvoiceCreated, TicketOpen, TicketOpenAdmin, TicketAdminReply, TicketClose, CancellationRequest, AfterModuleSuspend and AfterModuleUnsuspend.
E-mail Redirect: simply redirects every single e-mail to their Discord DM. This could break some ToS from Discord since you're sending to their DM personal information.
I'm not responsible for any kind of Ban/Warning that you can in Discord, by using any sort of Notifications. Using the Type Related, you have almost no chance to get it, but if you choose E-mail Redirect, since it has Personal Information about the Client itself (e.g. Name, Address or ID), it can be seen as a Data Leakage.
Due to the EU Law GDPR, they're very cautious.
For any questions, you may have, you can contact me anytime, here.
Where to Show
Currently, there are two types of places to show the current Link:
Homepage Panel
Secondary Sidebar
Adicional to this, and after version 1.7, it's automatically added to the WHMCS Sign-in Integrations, so if the Client clicks in his name and chooses Security Settings
, he'll see something like this page. My system works the same as before.
Redirect to the Linkage
This option, commonly mistaken, asks if you wanna redirect the Client to your Client Area or to show the Linked Discord information. Also, this is essential if you want the Client to choose if he wants to receive Notifications in their DM or not if you have this enabled.
Linkage Page not showing properly
If you see your Linkage Page showing like the one below, it's probably because you Upgraded from an older Version or you have some temporary bug in your Templates Cache. To go around this problem, you should go to Utilities -> System -> System Cleanup
and click on Empty Template Cache
.
Type of Roles
Currently, the module supports up to five types of attribution criteria. Check the below description:
Guest: have no active Service;
Client: have at least one active Service;
Group: have specifically, the Client Group informed;
Product: have at least one active Product of the one informed;
Product Group: have at least one active Product of the Product Group informed;
Product Server: have at least one active Product of the Product Server informed.
Dropdown without any Guild
If you don't have any Guilds in the dropdown, please check if you added the Bot to the desired Guild. Check the Discord - Step 5.
Invalid role(s) provided
If you get this error in the Backend API or in the Module Log, check if the Bot/the Bot role is upper than the role you wanna give.
Couldn't connect to server
If you find this in your Module Log, you either have a Connection Refused (Backend Firewall) issue or a Firewall (WHMCS) issue. Check below:
If you see
after 0 ms
, can be a Connection Refused issue. Check if you have a Firewall in the Backend, and if yes, if you allowed the Port you're using;If you see
after x ms
, wherex
is a value greater than 0, and can be a firewall in the server on which you're running the WHMCS. To solve this issue, you should contact your Hosting Provider and ask them to allow the Backend IP, to have an Outgoing connection. If they don't allow it, please use port 80 or 443;If you see
after x ms: Connection refused
, wherex
, can be 0 or greater than 0, can be the issue before.
WHMCS keeps loading
If you find your WHMCS, loading more time than it usually takes or keeps loading, it's due to the connection between WHMCS and the Backend. The Backend is giving a Timedout issue. To work around this, please check:
If you're using the right URL or IP:Port combination;
If the
config.json
doesn't have the wrong IP Address or Port.
Thanks
This module and all its features wouldn't have been possible if I didn't have the help of wonderful people who stayed by my side throughout allthe progress and helped me in every step I made. Gave ideas, argued mine, and tested them at all costs.
Thank you again to all the buyers for your help and kindness ❤️!
Last updated