Attachments in interaction responses returned from interactions endpoint #6204
Replies: 1 comment 1 reply
-
I was able to upload a file using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When receiving an interaction via a gateway event, you respond to it using an HTTP request to Create Interaction Response, which allows you to upload files.
However, when responding to interactions received via an HTTP request by Discord, it is apparently not possible, currently, to upload files in response. In contrast to
Create Interaction Response
, you cannot respond withmultipart/form-data
to attach files as the interaction will simply fail. I propose that this should be added/fixed to allow users of both the Gateway and the Interactions Endpoint API to do the same things.Beta Was this translation helpful? Give feedback.
All reactions