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

fix: custom_events config types not allowing template variables

This commit is contained in:
Dragory 2025-05-31 23:00:30 +00:00
parent b0a4081a26
commit ab57916a52
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View file

@ -2,14 +2,14 @@ import { GuildPluginData } from "knub";
import z from "zod/v4";
import { canActOn } from "../../../pluginUtils.js";
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter.js";
import { resolveMember, zSnowflake } from "../../../utils.js";
import { resolveMember, zBoundedCharacters, zSnowflake } from "../../../utils.js";
import { ActionError } from "../ActionError.js";
import { catchTemplateError } from "../catchTemplateError.js";
import { CustomEventsPluginType, TCustomEvent } from "../types.js";
export const zAddRoleAction = z.strictObject({
type: z.literal("add_role"),
target: zSnowflake,
target: zBoundedCharacters(0, 100),
role: z.union([zSnowflake, z.array(zSnowflake)]),
});
export type TAddRoleAction = z.infer<typeof zAddRoleAction>;