This integration allows WHMCS clients to automatically receive Discord roles based on their account status. Clients with active products receive one role, while verified clients without active products receive a different role. The system automatically updates roles when client status changes.
Features
- OAuth2 integration for secure Discord verification
- Automatic role assignment based on client status
- Different roles for active and inactive product states
- Automatic role updates via WHMCS hooks:
- - When products become active/inactive
- - When client status changes
- - Daily synchronization via cron
- - CSRF protection and secure error handling
- Clients visit /discord.php to link their Discord account
- Upon verification:
- - Clients with active products receive the active role
- - Clients without active products receive the default role
- Roles automatically update:
- - When products are activated/cancelled
- - When client status changes
- - During daily WHMCS cron job