diff --git a/backend/src/plugins/Automod/actions/setSlowmode.ts b/backend/src/plugins/Automod/actions/setSlowmode.ts index 8e2a7b70..4bb5682e 100644 --- a/backend/src/plugins/Automod/actions/setSlowmode.ts +++ b/backend/src/plugins/Automod/actions/setSlowmode.ts @@ -17,7 +17,7 @@ export const SetSlowmodeAction = automodAction({ async apply({ pluginData, actionConfig, contexts }) { const slowmodeMs = Math.max(actionConfig.duration ? convertDelayStringToMS(actionConfig.duration)! : 0, 0); - const channels = actionConfig.channels ?? new Array(); + const channels: string[] = actionConfig.channels ?? []; if (channels.length === 0) { channels.push(...contexts.filter(c => c.message?.channel_id).map(c => c.message!.channel_id)); }