Implement warning system enhancements with unique identifiers

- Added a `warningNumber` field to the `Warning` model for sequential identification of warnings.
- Updated the `createWarning` function to handle the new `warningNumber` logic and notify users via DM upon receiving a warning.
- Refactored moderation commands to utilize the new warning system, including changes to the warning creation and removal processes.
- Enhanced the WebUI to display warning numbers in the warnings table and updated localization for related messages.
- Documented changes in phase tracking to reflect the new warning system features.
This commit is contained in:
TheOnlyMace
2026-07-25 17:31:28 +02:00
parent 061e287390
commit 2058713e03
14 changed files with 218 additions and 52 deletions

View File

@@ -366,7 +366,7 @@
"deleteCase": "Fall löschen",
"confirmDeleteCase": "Diesen Fall wirklich löschen?",
"warningsTitle": "Verwarnungen",
"warningsDescription": "Letzte Verwarnungen. Entfernen löscht den Warn-Eintrag.",
"warningsDescription": "Letzte Verwarnungen mit kurzer Nummer (#). Entfernen löscht den Warn-Eintrag.",
"warningsEmpty": "Keine Verwarnungen gefunden.",
"warningsSearchUser": "User-ID filtern",
"removeWarning": "Verwarnung entfernen",

View File

@@ -366,7 +366,7 @@
"deleteCase": "Delete case",
"confirmDeleteCase": "Really delete this case?",
"warningsTitle": "Warnings",
"warningsDescription": "Recent warnings. Remove deletes the warning entry.",
"warningsDescription": "Recent warnings with short numbers (#). Remove deletes the warning entry.",
"warningsEmpty": "No warnings found.",
"warningsSearchUser": "Filter by user ID",
"removeWarning": "Remove warning",