discord-api-docs
discord-api-docs copied to clipboard
POST `/webhooks/{webhook.id}/{webhook.token}` ignores `wait` query parameter if message contains a file
Description
When creating message containing a file using webhook with wait
query param set to false, 200 status code is returned instead of 204.
Steps to Reproduce
Send a message containing a file using webhook with wait
query param set to false.
Expected Behavior
204 status code
Current Behavior
200 status code
Screenshots/Videos
No response
Client and System Information
Own library
Thanks for the report. This is a quirk of the API, since wait
is forced to true
if there are specific post processing requirements of the request. I would recommend checking for 2xx rather than strictly 204, but we can likely improve the documentation to make this clearer.