Discord Notificationsfor WHMCS · Documentation
v2.0.0

Message Formats

Three formats cover readable summaries, compact text alerts and card-style feeds.


Comparison

FormatContentEmbedBest for
Message + EmbedLinked titleYes, one coloured embedDefault. A readable channel list with full detail available.
Message onlyLinked title, body, attributes and view linkNoChannels without Embed Links, or compact alerts.
Embed onlyNoneYes, one coloured embedCard-style feeds without a duplicate title line.

Message + Embed

The default format. The message content is a short linked title, so the channel shows a clickable notification, while the embed carries the body, attributes, colour, timestamp and link.

{
  "content": "**[Invoice #1042 Paid](https://billing.hardsoftcode.com/admin/invoices.php?id=1042)**",
  "embeds": [{
    "title": "Invoice #1042 Paid",
    "url": "https://billing.hardsoftcode.com/admin/invoices.php?id=1042",
    "description": "Acme Ltd paid $49.00 USD.",
    "color": 5793266,
    "timestamp": "2026-11-30T12:00:00+00:00",
    "fields": [
      {"name": "Client", "value": "Acme Ltd", "inline": false},
      {"name": "Total", "value": "$49.00 USD", "inline": false}
    ]
  }]
}

Message only

A single Markdown message. No embed is sent, so the channel does not need the Embed Links permission.

**[Invoice #1042 Paid](https://billing.hardsoftcode.com/admin/invoices.php?id=1042)**

Acme Ltd paid $49.00 USD.

**Client:** Acme Ltd
**Total:** $49.00 USD
**Gateway:** Stripe

[View in WHMCS](https://billing.hardsoftcode.com/admin/invoices.php?id=1042)

With Attributes Inline ticked, the attribute block becomes one line separated by middot characters, for example Client: Acme Ltd · Total: $49.00 USD · Gateway: Stripe.

Embed only

Everything lives inside the embed and no separate content line is sent. If the embed would be empty, the module inserts WHMCS notification as the description, so Discord never rejects an empty embed. An embed-only notification is never retried without the embed: that would send nothing.

Limits and truncation

FieldDiscord limitModule behaviour
Content2,000 charactersTruncated with an ellipsis; an open code fence is closed.
Embed title256 charactersTruncated with an ellipsis.
Embed description4,096 charactersTruncated with an ellipsis; an open code fence is closed.
Field name256 charactersTruncated.
Field value1,024 charactersTruncated.
Fields25Extra attributes collapse into a More field.
Embed totalabout 6,000 charactersFields, then description, then title are reduced until the embed fits.
Webhook URL2,048 charactersRejected before sending if longer.

Colour handling

  • #5865F2 → 5793266
  • 5865F2 → 5793266
  • #f00 → 16711680
  • 5793266 → 5793266, for rules migrated from a decimal-based module
  • Anything else falls back to Discord blurple. An invalid colour never fails a notification.

Mentions and silent delivery

Every payload includes "allowed_mentions": {"parse": []}, so @everyone, @here, role mentions and user mentions cannot ping anyone. Notification text is additionally rewritten so the literal strings @everyone and @here contain a zero-width space.

Silent Message adds Discord message flag 4096. The message still appears in the channel but does not trigger push or desktop notifications.