diff --git a/backend/src/plugins/ModActions/functions/parseReason.ts b/backend/src/plugins/ModActions/functions/parseReason.ts index 93c8ea8c..a73b0ff3 100644 --- a/backend/src/plugins/ModActions/functions/parseReason.ts +++ b/backend/src/plugins/ModActions/functions/parseReason.ts @@ -5,7 +5,7 @@ const MAX_REASON_LENGTH = 512; export function parseReason(config: TConfigSchema, reason: string): string { if (!reason) return reason; if (config?.reason_aliases) { - reason = config.reason_aliases![reason.toLowerCase()] ?? reason; + reason = config.reason_aliases[reason.toLowerCase()] ?? reason; } if (reason!.length > MAX_REASON_LENGTH) { reason = reason!.substring(0, MAX_REASON_LENGTH - 4) + " […]";