add: Added admin-only .warndelete command

This commit is contained in:
Kwoth
2024-07-26 22:34:53 +00:00
parent 122b3ae0d9
commit de8a0e2207
5 changed files with 150 additions and 89 deletions

View File

@@ -947,6 +947,10 @@ warnexpire:
warnclear:
- warnclear
- warnc
warndelete:
- warndelete
- warnrm
- warnd
warnpunishlist:
- warnpunishlist
- warnpl

View File

@@ -3178,6 +3178,13 @@ warnclear:
desc: "The ID of the user whose warnings are being cleared."
index:
desc: "The index of the warning to be cleared, or 0 to clear all warnings."
warndelete:
desc: Deletes a warning from a user by its index.
ex:
- 3
params:
- index:
desc: "The index of the warning to be deleted."
warnpunishlist:
desc: Lists punishments for warnings.
ex:

View File

@@ -702,6 +702,7 @@
"warn_count": "{0} current, {1} total",
"warnlog_for": "Warnlog for {0}",
"warnpl_none": "No punishments set.",
"warning_not_found": "Warning not found.",
"warn_expire_set_delete": "Warnings will be deleted after {0} days.",
"warn_expire_set_clear": "Warnings will be cleared after {0} days.",
"warn_expire_reset": "Warnings will no longer expire.",
@@ -712,6 +713,7 @@
"warn_punish_rem": "Having {0} warnings will no longer trigger a punishment.",
"warn_punish_set": "I will apply {0} punishment to users with {1} warnings.",
"warn_punish_set_timed": "I will apply {0} punishment for {2} to users with {1} warnings.",
"warning_deleted": "Warning {0} has been deleted.",
"time_new": "Time",
"timezone": "Timezone",
"timezone_db_api_key": "You need to activate your TimezoneDB API key. You can do so by clicking on the link you've received in the email with your API key.",