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:
parent
b0a4081a26
commit
ab57916a52
3 changed files with 7 additions and 7 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue