Discord Notificationsfor WHMCS · Documentation
v2.0.0

Requirements & Install

Upload one folder, paste one webhook URL and create your first rule. No activation, no database migration.


Requirements

ItemRequirement
WHMCS8.13 or later, or 9.x. Developed and tested on WHMCS 9.
PHP8.1 or later with cURL, JSON and mbstring.
NetworkOutbound HTTPS on port 443 to discord.com or discordapp.com. Redirects are not followed.
DiscordA server and channel where you can manage webhooks.
CronA working WHMCS cron for reminder and suspension events.
DatabaseNo tables, no schema changes and no extra permissions.

Module files

Copy the whole folder to WHMCS_ROOT/modules/notifications/Discord:

modules/notifications/Discord/
    Discord.php             provider class
    whmcs.json              module metadata
    logo.png                provider card logo
    README.md               full manual
    docs/                   this documentation

WHMCS discovers providers by folder. There is no addon activation, no hook file and no database step.

Create the Discord webhook

  1. Open the target server and choose Server Settings → Integrations → Webhooks.
  2. Click New Webhook and choose the channel.
  3. Optionally set the default name and avatar. A rule can override both.
  4. Click Copy Webhook URL. The URL looks like https://discord.com/api/webhooks/123456789012345678/AbCdEf….

The URL contains a webhook ID and a secret token. Treat it like a password. If it is posted in a screenshot or a ticket, delete the webhook in Discord and create a new one.

Configure the provider

  1. Go to Configuration → System Settings → Notifications.
  2. Find the Discord card and click Configure.
  3. Paste the webhook URL. Leave the timeout at 10 unless your server is slow.
  4. Click Save Changes.

Saving runs the connection test immediately and posts a real message. A success dialog and a Discord notifications are working. message in the channel confirm the URL, permissions and outbound HTTPS connection.

Create the first rule

  1. Open the Notification Rules tab and click Create New Notification Rule.
  2. Choose an event group such as Invoice or Ticket.
  3. Select Discord as the notification method.
  4. Choose Message + Embed and save.
  5. Trigger a matching event and confirm the message arrives.
Existing rules after an upgrade — rules created by version 1.x keep working. Their legacy webhook override, sender name, colour and inline setting are still read; the format defaults to Message + Embed until the rule is edited.