Skip to content

Commit 35f5deb

Browse files
committed
fix: set_slowmode action config schema disallowing empty channels list
1 parent 8c20588 commit 35f5deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/plugins/Automod/actions/setSlowmode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { automodAction } from "../helpers.js";
66

77
export const SetSlowmodeAction = automodAction({
88
configSchema: z.strictObject({
9-
channels: z.array(zSnowflake),
9+
channels: z.array(zSnowflake).nullable().default([]),
1010
duration: zDelayString.nullable().default("10s"),
1111
}),
1212

0 commit comments

Comments
 (0)