Add global command channel rules and enhance command handling
- Introduced global command channel whitelist and blacklist in the GuildSettings model for improved command access control. - Implemented command gate logic in the command routing to handle channel and role restrictions, providing user feedback for denied commands. - Enhanced the CommandsManager component to support global rules and channel/role selection, improving the user interface for managing command permissions. - Updated localization files to include new keys for global command rules and related messages, ensuring clarity in user interactions.
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
"optional": "Optional",
|
||||
"back": "Zurück",
|
||||
"comingSoon": "Demnächst verfügbar",
|
||||
"close": "Schließen"
|
||||
"close": "Schließen",
|
||||
"searchSelect": "Suchen und auswählen…",
|
||||
"noResults": "Keine Treffer"
|
||||
},
|
||||
"nav": {
|
||||
"dashboard": "Dashboard",
|
||||
@@ -584,12 +586,20 @@
|
||||
"searchPlaceholder": "Commands durchsuchen…",
|
||||
"empty": "Keine Commands entsprechen der Suche.",
|
||||
"cooldownSeconds": "Cooldown (Sekunden)",
|
||||
"allowedRoleIds": "Erlaubte Rollen-IDs",
|
||||
"deniedRoleIds": "Verbotene Rollen-IDs",
|
||||
"allowedChannelIds": "Erlaubte Kanal-IDs",
|
||||
"deniedChannelIds": "Verbotene Kanal-IDs",
|
||||
"allowedRoleIds": "Erlaubte Rollen",
|
||||
"deniedRoleIds": "Verbotene Rollen",
|
||||
"allowedChannelIds": "Erlaubte Kanäle",
|
||||
"deniedChannelIds": "Verbotene Kanäle",
|
||||
"idsPlaceholder": "Eine oder mehrere IDs, kommagetrennt",
|
||||
"reset": "Auf Standard zurücksetzen"
|
||||
"reset": "Auf Standard zurücksetzen",
|
||||
"globalTitle": "Globale Command-Regeln",
|
||||
"globalDescription": "Kanal-Whitelist und -Blacklist für alle Slash-Commands auf diesem Server. Leere Whitelist = alle Kanäle (außer Blacklist). Pro-Command-Regeln gelten zusätzlich.",
|
||||
"globalAllowedChannels": "Whitelist-Kanäle",
|
||||
"globalDeniedChannels": "Blacklist-Kanäle",
|
||||
"globalAllowedHint": "Wenn gesetzt, sind Commands nur in diesen Kanälen nutzbar.",
|
||||
"globalDeniedHint": "In diesen Kanälen sind Commands immer gesperrt.",
|
||||
"channelSearchPlaceholder": "Kanal suchen…",
|
||||
"roleSearchPlaceholder": "Rolle suchen…"
|
||||
}
|
||||
},
|
||||
"userMenu": {
|
||||
|
||||
Reference in New Issue
Block a user