Multipart subpart headers for sticker creation require too specific content-type #4941
Unanswered
MinnDevelopment
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 3 replies
-
This endpoint does not use json_payload form key.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When creating a sticker using the Create Guild Sticker endpoint, you have to specify an exact media-type for the image you use, ie.
image/png
andapplication/json
. Discord should be able to determine the type automatically, just like they do for image attachments.For image attachments with the Create Message endpoint, you can get away with setting the content-type to just
application/octet-stream
, and discord automatically determines the image type from the data.Additionally, it seems that
payload_json
does not work for this endpoint, as I get 400 response when I send my metadata as a json subpart.Beta Was this translation helpful? Give feedback.
All reactions