LonexWHMCS

LonexWHMCS

Developed By LonexLabs

Compatible with WHMCS v9.0

LonexDiscord

Turn Discord into a first-class communication and access platform for your WHMCS customers automatically.

Automatic Discord Role Management

When a customer:

  • Purchases a product → they receive the correct Discord role
  • Renews a service → access remains active
  • Cancels or gets suspended → the role is removed
  • Pays an invoice → they receive a Discord DM
  • Receives a staff ticket reply → they're notified instantly

No manual member management. No "can I get my role?" tickets. No customers stuck in Discord limbo.

Built for WHMCS 8.x

LonexDiscord integrates deeply into the:

  • Order pipeline
  • Billing system
  • Service lifecycle
  • Ticket system
  • Email pipeline

Everything is designed specifically for modern WHMCS environments.

Powerful Rule Engine

Create Discord role rules based on:

  • Any active client
  • Ownership of specific products
  • Client groups
  • Total lifetime spend
  • Service status
  • Promotional trials
  • Time-limited campaigns

Supports 11 rule types with both permanent and temporary role assignments.

Multi-Guild Support

Run:

  • Shared rules across multiple Discord servers
  • Guild-specific role logic
  • Independent configurations per community

Admin Toolkit Included

LonexDiscord includes a full management suite:

  • Discord profile card on the WHMCS client summary page
  • Search clients by Discord ID directly from the WHMCS navbar
  • Dry-run previews before saving rules
  • 7-day activity statistics
  • One-click backfill syncing for existing customers

Preview exactly how many users qualify before enabling a rule.

Intelligent Email Forwarding

WHMCS emails can be automatically forwarded to Discord DMs.

LonexDiscord:

  1. Renders the email exactly as WHMCS would send it
  2. Strips HTML formatting
  3. Reformats content for Discord
  4. Sends it directly to the customer

Security Protections

Sensitive emails are automatically excluded, including:

  • Password reset emails
  • Two-factor authentication emails
  • Verification emails
  • Admin-targeted templates

OAuth Account Linking

Clients can connect their Discord account in just two clicks using OAuth.

Additional features include:

  • Manual account linking for edge cases
  • Automatic refresh token rotation
  • Discord rate-limit handling with retry parsing
  • Bot hierarchy validation before saving rules

Prevent configuration mistakes before they happen.

Self-Hosted & One-Time Licence

  • Self-hosted
  • One-time purchase
  • No subscriptions
  • No vendor lock-in
  • No per-client limits

 

Reviews

5 stars
1
1
4 stars
0
0
3 stars
0
0
2 stars
0
0
1 star
0
0
William Skahan avatar

William Skahan @william4052

May 25, 2026 at 06:06:45 PM

Amazing product! Just drag and dropped did a few configurations on the easy to use dashboard and it all works immediately out of the box. Had to contact support, and they were immediately responsive and helpful. Highly recommend the product!

  • 4 days ago

Version Compatibility


Compatible with WHMCS v9.0

Full Version Compatibility


  • All versions of WHMCS v9.0
  • All versions of WHMCS v8.13
  • All versions of WHMCS v8.12
  • All versions of WHMCS v8.11

Support for this product

The best place to start if you need help with a specific product is to contact the developer. All WHMCS Marketplace developers have both a website and support URL listed.

Developed By LonexLabs

Changelog

v1.1 Released May 25th, 2026

Latest Version


Bug fixes for email-to-DM rendering.

  • Fixed {$invoice_total}, {$service_recurring_amount}, {$invoice_link}, {$payment_method} and other computed merge fields appearing as literal text in Discord DMs. The renderer now fetches invoice, service, and ticket context from the database to provide values that WHMCS would normally inject later in its send pipeline.
  • Fixed conditional {if}…{else}…{/if} blocks in email templates rendering both branches at once (e.g. two consecutive payment-method paragraphs). The renderer now evaluates conditionals against merge fields and keeps only the matching branch. Supports &&, ||, eq, neq, gt, lt, numeric comparisons, and {elseif} chains.
  • Fixed excessive blank lines between sections of forwarded emails. HTML entities ( , zero-width spaces) are now decoded before whitespace normalisation.
  • Removed the "Sent via LonexDiscord" footer from forwarded email DMs.

 

Previous Versions


v1.0 Released May 21st, 2026

View/hide detailed changelog

Initial public release of LonexDiscord - full WHMCS ↔ Discord integration with role automation, email-to-DM forwarding, multi-guild support, and a complete admin toolkit.

Discord linking

  • OAuth2 flow with HMAC SHA-256 signed state tokens (survives session timeouts and concurrent-tab races)
  • Automatic refresh token rotation - accounts stay linked indefinitely
  • Manual link option for admin-driven onboarding (VIPs, edge cases)
  • Per-client unlink with managed-role cleanup

Role automation

  • 11 rule types: product, product addon, product group, product server, client group, affiliate, lifetime spend threshold, active service count, domain owner, active client, and guest
  • Multi-guild support - manage unlimited Discord servers from one install
  • Time-based role expiry - set a duration on any rule for trials and limited-access promotions
  • Per-rule "keep on suspend" toggle for grace-period behaviour
  • Pre-flight role hierarchy validation prevents rules the bot can't execute
  • Dry-run preview shows how many clients would qualify before saving

Email-to-DM forwarding

  • Renders WHMCS email templates with full Smarty merge field support
  • HTML cleanup for clean Discord-friendly DM formatting
  • Admin-template filtering - admin notifications never DM the customer they reference
  • Security skip list - password resets, 2FA codes, and verification emails never forwarded

Admin tools

  • Discord profile card on the WHMCS client summary page
  • Intelligent search integration - find linked clients by Discord ID from the navbar
  • 7-day activity dashboard with daily event bar chart
  • Backfill action - add all currently-linked clients to a newly-configured guild
  • Per-event activity log for audit trails

Reliability

  • Rate-limit-aware HTTP client with retry-after parsing
  • Licence validated with 15-minute cache and 72-hour offline grace window
  • Self-hosted - no third-party data processing, no per-client limits

 

See also

FREE ResellerClub Tools v2

Working comfortably with ResellerClub's products and services through your WHMCS system requires additional tools.

Free
SEO Manager

The module developed to add meta description and meta keywords and change the page title

Free
WHOIS for Clients

WHOIS for Clients

Free
Dropbox Backup for WHMCS

This module will integrate WHMCS with Dropbox to upload a copy of WHMCS database onto the cloud. You will never have to worry about losing data any more.

Free
Software Licensing Addon

Build, License & Distribute Your Own Apps using WHMCS

Commercial