[AB-106] adding deletion duration to ban command

removing banDelete command
updating deletion days to deletion duration
This commit is contained in:
Sheldan
2023-09-26 01:05:08 +02:00
parent 7718a86b14
commit ff5f56a065
11 changed files with 6 additions and 11 deletions

View File

@@ -27,11 +27,11 @@
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?json_string}"
}
<#if deletionDays gt 0>
<#if deletionDuration?has_content>
,
{
"name": "<@safe_include "ban_log_deletion_days_field_title"/>",
"value": "${deletionDays?c}"
"name": "<@safe_include "ban_log_deletion_duration_field_title"/>",
"value": "${fmtDuration(deletionDuration)}"
}
</#if>
]

View File

@@ -0,0 +1 @@
The duration to delete messages for.

View File

@@ -1 +0,0 @@
Deletes messages of a member and bans them

View File

@@ -1,2 +0,0 @@
This command can be used to ban a user and delete their messages for at most 7 days.
If a time period is provided, only the day portion will be considered. For example: 1d20h will only delete messages for one day.

View File

@@ -1 +0,0 @@
The time period (in days) for which messages should be deleted in