Message Formats
Three formats cover readable summaries, compact text alerts and card-style feeds.
Comparison
| Format | Content | Embed | Best for |
|---|---|---|---|
| Message + Embed | Linked title | Yes, one coloured embed | Default. A readable channel list with full detail available. |
| Message only | Linked title, body, attributes and view link | No | Channels without Embed Links, or compact alerts. |
| Embed only | None | Yes, one coloured embed | Card-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
| Field | Discord limit | Module behaviour |
|---|---|---|
| Content | 2,000 characters | Truncated with an ellipsis; an open code fence is closed. |
| Embed title | 256 characters | Truncated with an ellipsis. |
| Embed description | 4,096 characters | Truncated with an ellipsis; an open code fence is closed. |
| Field name | 256 characters | Truncated. |
| Field value | 1,024 characters | Truncated. |
| Fields | 25 | Extra attributes collapse into a More field. |
| Embed total | about 6,000 characters | Fields, then description, then title are reduced until the embed fits. |
| Webhook URL | 2,048 characters | Rejected before sending if longer. |
Colour handling
#5865F2→57932665865F2→5793266#f00→167116805793266→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.