Discord Notifications for WHMCS
Rule-based notifications from WHMCS to your Discord server — delivered as a Markdown message, a coloured embed, or both.
WHMCS already knows when an invoice is paid, an order is placed, a ticket is opened or a service is suspended. Discord Notifications plugs into the native WHMCS notification system as a provider, so those events can be posted straight into a Discord channel through a webhook — no bot account required.
Each WHMCS notification rule decides which events matter, which conditions apply and which Discord channel receives the message. The module builds a safe payload, enforces Discord’s limits, suppresses mentions, redacts the webhook token from logs and reports deleted webhooks and rate limits in language an administrator can act on.
Rule-based delivery
Use WHMCS events and conditions to decide exactly which invoice, order, ticket, service or domain activity reaches Discord.
Message or embed
Send a linked Markdown summary, a coloured embed with attributes, or both. Choose the format per notification rule.
Multiple channels
Route billing, support and operations to different Discord channels with a per-rule webhook override.
Hardened transport
HTTPS-only URL validation, TLS verification, no redirects, safe truncation, mention suppression and redacted module logs.
How it works
- A WHMCS event fires — for example
InvoicePaidorTicketOpen. - WHMCS matches the event against your notification rules and their conditions.
- The matching rule calls the Discord provider with its per-rule settings.
- The module builds the payload, validates the webhook URL and posts JSON to Discord.
- Discord renders the Markdown and embed in the target channel.
Every delivery attempt is written to the WHMCS module log with the webhook token redacted, so you can diagnose a rejected embed or a rate limit without exposing the channel secret.
Requirements
| Requirement | Minimum |
|---|---|
| WHMCS | 8.13+ / 9.x (developed on WHMCS 9) |
| PHP | 8.1 or higher |
| Extensions | cURL, JSON, mbstring (all standard WHMCS requirements) |
| Network | Outbound HTTPS on port 443 to discord.com |
| Discord | A channel where you can create webhooks (Manage Webhooks) |
| WHMCS cron | Running, so cron-driven events such as invoice reminders are delivered |
Quick start
- Upload the
Discordfolder tomodules/notifications/. - Create a webhook in Discord: Server Settings → Integrations → Webhooks → New Webhook, then copy the URL.
- Configure the provider in WHMCS: Configuration → System Settings → Notifications → Configure (Discord). Saving sends a test message.
- Create a notification rule, choose Discord as the provider and pick the format.
- Verify the message in Discord and the entry in the WHMCS module log.