From d7c00d45560458359933fdb3b34596c684a08fbf Mon Sep 17 00:00:00 2001 From: Hampus Date: Wed, 7 Oct 2026 01:42:37 +0200 Subject: [PATCH] fix(schema): keep template topics optional after trimming (#3247) --- packages/schema/src/domains/guild/GuildTemplateSchemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/domains/guild/GuildTemplateSchemas.ts b/packages/schema/src/domains/guild/GuildTemplateSchemas.ts index 705563325..e7494673a 100644 --- a/packages/schema/src/domains/guild/GuildTemplateSchemas.ts +++ b/packages/schema/src/domains/guild/GuildTemplateSchemas.ts @@ -61,8 +61,8 @@ export const TemplateChannel = z.object({ topic: z .string() .max(TEMPLATE_TOPIC_MAX_LENGTH) + .transform(clipTopic) .nullish() - .transform((value) => (value == null ? value : clipTopic(value))) .describe('The channel topic, shortened to the Fluxer channel topic limit'), position: Int32Type.describe('The position of the channel'), parent_id: TemplateEntityId.nullish().describe('The template-local ID of the parent category'),