fix: allow 0 deleteMessageDays and fix upper limit

This commit is contained in:
almeidx 2022-02-19 17:57:01 +00:00
parent feeb048855
commit 24cc532e86
No known key found for this signature in database
GPG key ID: D3B8D0FDD91CDA0E
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ export const BanAction = automodAction({
const reason = actionConfig.reason || "Kicked automatically";
const duration = actionConfig.duration ? convertDelayStringToMS(actionConfig.duration)! : undefined;
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
const deleteMessageDays = actionConfig.deleteMessageDays || undefined;
const deleteMessageDays = actionConfig.deleteMessageDays ?? undefined;
const caseArgs: Partial<CaseArgs> = {
modId: pluginData.client.user!.id,