discord-api-docs
discord-api-docs copied to clipboard
Missing application.commands.permissions.update makes the api return 40001 instead of 50026
Description
When using bearer tokens to update command permissions missing application.commands.permissions.update
scope make api return code 40001 instead of 50026. This causes confusion around why the respective request fails.
Steps to Reproduce
- Get a bearer token with the oauth flow with missing
application.commands.permissions.update
scope - Use that token to send a request to
/applications/app_id/guilds/guild_id/commands/command_id/permissions
- Api returns 401 Status with the json code being 40001
Expected Behavior
Api returning 50026 code
Current Behavior
Api returns 40001 code
Screenshots/Videos
No response
Client and System Information
I am using twilight for communicating with the api. Oauth handling is handwritten.