From 52173b6ca87761ce8bea0ec4dfd2966e69281ae3 Mon Sep 17 00:00:00 2001 From: Almeida Date: Sat, 7 Mar 2026 00:02:56 +0000 Subject: [PATCH] fix: disable per option validation on chat input subcommands (#11405) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../commands/chatInput/ChatInputCommandSubcommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builders/src/interactions/commands/chatInput/ChatInputCommandSubcommands.ts b/packages/builders/src/interactions/commands/chatInput/ChatInputCommandSubcommands.ts index ae6256be7..b3626fab3 100644 --- a/packages/builders/src/interactions/commands/chatInput/ChatInputCommandSubcommands.ts +++ b/packages/builders/src/interactions/commands/chatInput/ChatInputCommandSubcommands.ts @@ -74,7 +74,7 @@ export class ChatInputCommandSubcommandGroupBuilder const data = { ...(structuredClone(rest) as Omit), type: ApplicationCommandOptionType.SubcommandGroup as const, - options: options?.map((option) => option.toJSON(validationOverride)) ?? [], + options: options?.map((option) => option.toJSON(false)) ?? [], }; validate(chatInputCommandSubcommandGroupPredicate, data, validationOverride); @@ -107,7 +107,7 @@ export class ChatInputCommandSubcommandBuilder const data = { ...(structuredClone(rest) as Omit), type: ApplicationCommandOptionType.Subcommand as const, - options: options?.map((option) => option.toJSON(validationOverride)) ?? [], + options: options?.map((option) => option.toJSON(false)) ?? [], }; validate(chatInputCommandSubcommandPredicate, data, validationOverride);