You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
The code in guild.cpp for create_guild_ban incorrectly PUTs the reason and delete_message_days parameters to Discord as URL parameters. This causes an HTTP 400 Bad Request response, as the Discord docs specify that that these parameters should be sent as a JSON object, seen here.
I noticed this issue when the ban command for my bot failed, and resolved the issue by changing the code for the create_guild_ban method to the following:
Odd. It used to be done via query params. It looks like it was changed. I was not aware of this change. If you'd like to make a PR for that change I can merge it in.
The code in guild.cpp for create_guild_ban incorrectly PUTs the reason and delete_message_days parameters to Discord as URL parameters. This causes an
HTTP 400 Bad Request
response, as the Discord docs specify that that these parameters should be sent as a JSON object, seen here.I noticed this issue when the ban command for my bot failed, and resolved the issue by changing the code for the create_guild_ban method to the following:
The text was updated successfully, but these errors were encountered: