Settings Reference
Provider settings are configured once. Rule settings decide how each event is rendered and where it goes.
Provider settings
Configuration → System Settings → Notifications → Discord → Configure
| Field | Key | Default | Notes |
|---|---|---|---|
| Webhook URL | webhook | — | Required. HTTPS Discord webhook URL. Used when a rule leaves the override blank. |
| Sender Name | username | blank | 80 characters or fewer. Blank uses the webhook name configured in Discord. |
| Sender Avatar URL | avatarUrl | blank | HTTPS only, 2048 characters or fewer. |
| Request Timeout | timeout | 10 | Seconds, clamped to 1–30. |
| Strict Delivery | strictMode | off | Off retries once without a rejected optional embed or sender identity. |
| Allow Custom Host | allowCustomHost | off | Only for a trusted proxy or a self-hosted Discord-compatible service. HTTPS and the path shape are still required. |
| Version | version | 2.0.0 | Read-only row. It is not submitted with the form. |
Rule settings
Notification Rules → Create New Notification Rule → Notification Method: Discord
| Field | Key | Default | Notes |
|---|---|---|---|
| Webhook Override | webhook | blank | Wins over the provider webhook. The legacy overwrite key is still read. |
| Message Format | discordFormat | both | Message + Embed, Message only or Embed only. The key is provider-unique to avoid WHMCS field collisions. |
| Embed Colour | embedColor | #5865F2 | Accepts #rgb, #rrggbb, bare hex or a decimal value. Invalid values fall back to blurple. |
| Sender Name Override | userName | blank | Wins over the provider sender name. |
| Sender Avatar Override | avatarUrl | blank | HTTPS only. Wins over the provider avatar. |
| Hide Attributes | hideAttributes | off | Negative key: an absent checkbox means include attributes. |
| Attributes Inline | inline | off | Side-by-side embed fields and one dotted line in Message only mode. |
| Hide View Link | hideLink | off | Removes the link back to the WHMCS record. |
| Silent Message | silent | off | Sets Discord message flag 4096; the message is posted without push notifications. |
Discord permissions
| Permission | Why it is needed |
|---|---|
| Manage Webhooks | Create or copy the webhook. WHMCS does not need this after setup. |
| View Channel | The webhook can only post to a channel it can see. |
| Send Messages | Required for any delivery. |
| Embed Links | Required for embeds. Without it, select Message only. |
| Mention Everyone | Never needed: mentions are suppressed in the payload. |
Escaped URLs and saved values
WHMCS renders provider settings through an HTML-escaping layer. A URL containing & can be displayed as & and re-escaped on a later save. The module decodes repeatedly until the value is stable before validating or sending it, so a saved webhook keeps working.
If the Configure dialog shows a URL that has changed, clear the field, paste the URL from Discord again and save. The connection test runs on save and reports an invalid URL immediately.