Closed TTtie closed 2 years ago
Confirmed that there is a bug here.
name
and tags
are required. When you provide payload_json
it becomes the source of truth for the request, so the parameters not being in there causes the 400.payload_json
will once again be the source of truth.Thank you for the test cases. I'll update this once the fix is merged and deployed!
A fix for this has been merged and will be available in the API following deployments.
This is deployed
Description
Using
payload_json
with the Create Guild Sticker endpoint (seemingly implemented in #3969) results in unexpected and inconsistent behavior contrary to other endpoints usingpayload_json
in the API.Steps to Reproduce
Expected Behavior
name
,description
, andtags
and supplying them throughpayload_json
(request 1) works as expected and creates a sticker.name
,description
, andtags
multipart fields are ignored whenpayload_json
is supplied and values frompayload_json
are used instead, as is with the Create Message and Execute Webhook endpoints (not the case when executing request 3)Current Behavior
name
,description
, andtags
multipart fields and supplying them throughpayload_json
results in HTTP 400 Bad Request (as seen in request 1)payload_json
along with supplying multipart fields results in error 50035 (Invalid Form Body) (as seen in request 2)name
,description
, andtags
in both multipart body andpayload_json
results in the values from the multipart body being used (as seen in request 3)Screenshots/Videos
No response
Client and System Information
Discord API v9/v10, any client (tested with curl 7.82.0)