From 5bc4b8470c9a58b743056250f04dd382598a0e85 Mon Sep 17 00:00:00 2001 From: Apteryx Date: Wed, 11 Sep 2024 07:04:44 +1200 Subject: [PATCH] fix: actually pass `followUp` files to api --- .changeset/silver-pants-clean.md | 5 +++++ packages/carbon/src/abstracts/BaseInteraction.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/silver-pants-clean.md diff --git a/.changeset/silver-pants-clean.md b/.changeset/silver-pants-clean.md new file mode 100644 index 00000000..cb818d4f --- /dev/null +++ b/.changeset/silver-pants-clean.md @@ -0,0 +1,5 @@ +--- +"@buape/carbon": patch +--- + +fix: actually pass `followUp` files to api diff --git a/packages/carbon/src/abstracts/BaseInteraction.ts b/packages/carbon/src/abstracts/BaseInteraction.ts index 4cd3a154..482afd16 100644 --- a/packages/carbon/src/abstracts/BaseInteraction.ts +++ b/packages/carbon/src/abstracts/BaseInteraction.ts @@ -240,7 +240,8 @@ export abstract class BaseInteraction extends Base { embeds: reply.embeds?.map((embed) => embed.serialize()), components: reply.components?.map((row) => row.serialize()), flags: options.ephemeral ? 64 : undefined - } as RESTPostAPIInteractionFollowupJSONBody + } as RESTPostAPIInteractionFollowupJSONBody, + files: options.files } ) }