Skip to content

Commit

Permalink
fix: actually pass followUp files to api
Browse files Browse the repository at this point in the history
  • Loading branch information
apteryxxyz authored and thewilloftheshadow committed Sep 10, 2024
1 parent 0a22fa8 commit 5bc4b84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-pants-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@buape/carbon": patch
---

fix: actually pass `followUp` files to api
3 changes: 2 additions & 1 deletion packages/carbon/src/abstracts/BaseInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ export abstract class BaseInteraction<T extends APIInteraction> 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
}
)
}
Expand Down

0 comments on commit 5bc4b84

Please sign in to comment.