From f20c2b73000f61e5256d04ca184ac10db0a4e037 Mon Sep 17 00:00:00 2001 From: Fleny Date: Fri, 14 Aug 2026 18:49:09 +0200 Subject: [PATCH] feat: Add file type filtering for modals & / commands (#5236) * feat: Add file type filtering for modals & / commands * Add fileTypes to ApplicationCommandOption * update comments --------- Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com> --- packages/bot/src/desiredProperties.ts | 1 + .../transformers/applicationCommandOption.ts | 1 + packages/bot/src/transformers/component.ts | 1 + packages/bot/src/transformers/types.ts | 36 +++++++++++++++++++ packages/types/src/discord/components.ts | 18 ++++++++++ packages/types/src/discord/interactions.ts | 20 +++++++++++ packages/types/src/discordeno/components.ts | 18 ++++++++++ 7 files changed, 95 insertions(+) diff --git a/packages/bot/src/desiredProperties.ts b/packages/bot/src/desiredProperties.ts index a06acbc8b..bf6c59577 100644 --- a/packages/bot/src/desiredProperties.ts +++ b/packages/bot/src/desiredProperties.ts @@ -368,6 +368,7 @@ export function createDesiredPropertiesObject bot.transformers.applicationCommandOption(bot, option)), + fileTypes: payload.file_types, } as ApplicationCommandOption; return bot.transformers.customizers.applicationCommandOption(bot, payload, applicationCommandOption); diff --git a/packages/bot/src/transformers/component.ts b/packages/bot/src/transformers/component.ts index e8c509919..e614ca459 100644 --- a/packages/bot/src/transformers/component.ts +++ b/packages/bot/src/transformers/component.ts @@ -493,6 +493,7 @@ function transformFileUploadComponent(bot: Bot, payload: Partial