3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-06 23:55:03 +00:00

fix: set_slowmode action config schema disallowing empty channels list

This commit is contained in:
Dragory 2025-05-31 18:13:14 +00:00
parent 8c2058821f
commit 35f5deb19a
No known key found for this signature in database

View file

@ -6,7 +6,7 @@ import { automodAction } from "../helpers.js";
export const SetSlowmodeAction = automodAction({
configSchema: z.strictObject({
channels: z.array(zSnowflake),
channels: z.array(zSnowflake).nullable().default([]),
duration: zDelayString.nullable().default("10s"),
}),