Discord Notificationsfor WHMCS · Documentation
v2.0.0

Changelog

Every release, newest first. The README contains the same history.


v2.0.0 — 2026

Added

  • Three per-rule message formats: Message + Embed, Message only and Embed only.
  • Per-rule sender name and avatar overrides, plus module-level defaults.
  • Silent delivery through Discord message flag 4096.
  • Provider Allow Custom Host for trusted proxies and self-hosted compatible services.
  • Read-only Version row in the Configure dialog.
  • Eight-page HTML documentation and a 1200×630 social preview card.
  • Full test harness covering contract, formats, validation, error mapping and redaction.

Changed

  • The rule format uses the provider-unique discordFormat key, so it cannot collide with another notification provider.
  • Embed colour accepts #rgb, #rrggbb, bare hex and legacy decimal values; invalid values fall back to #5865F2.
  • Attributes become proper embed fields with Discord’s per-field limits, instead of unbounded fields.
  • The default format is Message + Embed, replacing the previous embed-only payload.
  • The webhook is validated before every request, including per-rule overrides.
  • Errors name the actual problem and the fix instead of returning raw JSON.

Fixed

  • The webhook token is redacted from the module log.
  • Double- and triple-HTML-escaped webhook URLs are decoded before use.
  • Mentions in notification text can no longer ping @everyone or @here.
  • Empty attribute values no longer create invalid embed fields.
  • Long messages and open code fences are truncated safely instead of being rejected by Discord.
  • Legacy overwrite, userName, embedColor and inline rule keys remain readable.

v1.2.0 — 2024

  • Previous release: webhook delivery with a sender name, embed colour, inline attributes and a per-rule webhook override.
  • Configuration is stored by WHMCS; no module tables and no activation step.

Upgrade notes

Version 2.0.0 is backward compatible. Replace the folder, open the provider once and save it, then confirm a pre-existing rule still delivers. Existing rules keep their legacy keys and default to Message + Embed until edited. See Requirements & Install for the full upgrade path.