Enhance verification module with improved command handling and localization
- Updated the verification command to utilize a new `ephemeral` utility for consistent ephemeral message replies. - Refactored the `buildVerificationPanel` function to include localization support for panel titles and descriptions. - Added permission checks to ensure the bot can post in the designated verification channel. - Introduced a new verification queue in the queue management system for better handling of verification tasks. - Updated localization files to include new keys for verification-related messages in both English and German.
This commit is contained in:
@@ -173,6 +173,13 @@ const de: Dictionary = {
|
||||
'verification.notConfigured': 'Verifizierung ist noch nicht eingerichtet. Nutze `/verify setup`.',
|
||||
'verification.invalidChannel': 'Der Verifizierungskanal ist ungültig.',
|
||||
'verification.panelPosted': 'Verifizierungs-Panel gepostet.',
|
||||
'verification.panelMissingPermission':
|
||||
'Dem Bot fehlen Rechte in diesem Kanal (Kanal sehen, Nachrichten senden, Embeds).',
|
||||
'verification.panel.title': 'Verifizierung',
|
||||
'verification.panel.description':
|
||||
'Klicke auf den Button unten, um dich zu verifizieren und Zugang zum Server zu erhalten.',
|
||||
'verification.panel.button': 'Verifizieren',
|
||||
'verification.panel.buttonCaptcha': 'Verifizieren (Captcha)',
|
||||
'verification.captchaLink': 'Öffne diesen Link zur Captcha-Verifizierung: {url}',
|
||||
'verification.error.not_configured': 'Verifizierung ist nicht konfiguriert.',
|
||||
'verification.error.member_not_found': 'Mitglied nicht gefunden.',
|
||||
@@ -749,6 +756,13 @@ const en: Dictionary = {
|
||||
'verification.notConfigured': 'Verification is not set up yet. Use `/verify setup`.',
|
||||
'verification.invalidChannel': 'The verification channel is invalid.',
|
||||
'verification.panelPosted': 'Verification panel posted.',
|
||||
'verification.panelMissingPermission':
|
||||
'The bot lacks permissions in that channel (View Channel, Send Messages, Embed Links).',
|
||||
'verification.panel.title': 'Verification',
|
||||
'verification.panel.description':
|
||||
'Click the button below to verify and gain access to the server.',
|
||||
'verification.panel.button': 'Verify',
|
||||
'verification.panel.buttonCaptcha': 'Verify (Captcha)',
|
||||
'verification.captchaLink': 'Open this link to complete captcha verification: {url}',
|
||||
'verification.error.not_configured': 'Verification is not configured.',
|
||||
'verification.error.member_not_found': 'Member not found.',
|
||||
|
||||
Reference in New Issue
Block a user