This module integrates WHMCS with Discord by sending notifications through Discord webhooks. Whenever an event in WHMCS meets the specified criteria, a notification is pushed to a Discord channel. This is particularly useful for keeping your team or community up to date with your WHMCS instance without having to check it directly.
- Easy configuration through WHMCS admin panel
- Customizable message content and color
- Optional role mention
- Custom webhook avatar
- Uses Discord Webhooks for efficient and easy integration
- William Beacroft (billyab.co.uk)
- Download the module via the following link.
- Upload the
modules
folder to the root of your WHMCS installation folder. - The
Discord.php
andlib
folder should be in the following directorywhmcs/modules/notifications/Discord
. - Go to the WHMCS admin panel, navigate to "Setup" -> "Notifications".
- Activate the Discord Notifications module.
- Configure the settings accordingly. (refer to the following discord documentation for creating the webhook for your discord server)
- Create notification rules and configure any override settings accordingly.
- Type: text
- Description: The Discord Webhook URL that notifications should be sent to.
- Type: text (Optional)
- Description: This will be the name of the user that sends the message in the Discord channel.
- Type: text (Optional)
- Description: This is the sideline color for the message. The color code format within this script is standard hex. Exclude the beginning
#
character if one is present.
- Type: text (Optional)
- Description: If you'd like to have a specific group pinged on each message, please enter the ID here. Only include the numerical ID.
- Type: text (Optional)
- Description: Your desired Webhook Avatar. Please make sure you enter a direct link to the image.
- Type: text (Optional)
- Description: Allows you to customise the primary display message shown in the notification.
- Type: text (Optional)
- Description: Override the Discord Webhook URL for this notification to send to a different channel.
- Type: text (Optional)
- Description: Override the side line colour for the message. The color code format within this script is standard hex. Exclude the beginning # character if one is present.
- Type: text (Optional)
- Description: If you'd like to have a specific group pinged for this message rule, please enter the ID here (this is in addition to the module settings). Only include the numerical ID.
Once the module is installed and configured, you can set up WHMCS to send notifications based on specific events. For example, you can set it to notify you whenever a new ticket is created, an invoice is paid, etc.
Make sure the webhook URL is set correctly to ensure that notifications are sent to the desired Discord channel.
For bug reports, feature requests, or any other queries regarding this module, please get in touch with me or via GitHub issues.
This module is provided as-is, and while efforts have been made to ensure its quality, the author is not responsible for any issues that may arise from the use of this module. It's important to test this module in a safe environment before deploying it in a production setting.
This module is in no way associated with Discord Inc., its subsidiaries, and its related companies. The Discord logo is copyright Discord Inc.