discord-api-docs
discord-api-docs copied to clipboard
Error on Developer Portal when permissions field is null in install params
Description
When editing the current application (/applications/@me) and the permissions field is null or not set, the following error occurrs on the developer portal when trying to reach
https://discord.com/developers/applications/ID_HERE/oauth2/general (see below)
Steps to Reproduce
Make a PATCH request to /applications/@me with following payload:
{
"install_params": {"scopes": ["bot"], "permissions": null}
}
or following payload:
{
"install_params": {"scopes": ["bot"]}
}
or following payload:
{
"install_params": {"scopes": ["applications.commands"], "permissions": null}
}
or following payload:
{
"install_params": {"scopes": ["applications.commands"]}
}
Expected Behavior
No error on developer portal.
Current Behavior
Error encountered!
Cannot convert None to a BigInt
is returned.
Screenshots/Videos
No response
Client and System Information
Client: aiohttp 3.8.4 OS: Windows 11 Home 22H2 Build 22621.2283