From 77fc516a647c966f30bf2ecc655dee89c5766a47 Mon Sep 17 00:00:00 2001 From: Fleny Date: Wed, 23 Apr 2025 16:18:40 +0200 Subject: [PATCH] feat(types,bot): Add the `attachmentSizeLimit` prop to interactions (#4163) * Add the attachmentSizeLimit prop to interactions * Fix type error --- packages/bot/src/desiredProperties.ts | 1 + packages/bot/src/transformers/interaction.ts | 2 ++ packages/bot/src/transformers/types.ts | 2 ++ packages/types/src/discord/interactions.ts | 2 ++ 4 files changed, 7 insertions(+) diff --git a/packages/bot/src/desiredProperties.ts b/packages/bot/src/desiredProperties.ts index 37207ecbf..d09b224ad 100644 --- a/packages/bot/src/desiredProperties.ts +++ b/packages/bot/src/desiredProperties.ts @@ -378,6 +378,7 @@ export function createDesiredPropertiesObject> /** Context where the interaction was triggered from */ context?: DiscordInteractionContextType + /** Attachment size limit in bytes */ + attachmentSizeLimit: number /** * Sends a response to an interaction. * diff --git a/packages/types/src/discord/interactions.ts b/packages/types/src/discord/interactions.ts index 4e2860154..7abf6698e 100644 --- a/packages/types/src/discord/interactions.ts +++ b/packages/types/src/discord/interactions.ts @@ -59,6 +59,8 @@ export interface DiscordInteraction { authorizing_integration_owners: DiscordAuthorizingIntegrationOwners /** Context where the interaction was triggered from */ context?: DiscordInteractionContextType + /** Attachment size limit in bytes */ + attachment_size_limit: number } /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type */