-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Description
The application response object for my bot contains the following data:
...
"redirect_uris": [
"https://localhost:3000/api/auth",
"https://example.com/dashboard",
"https://example.com/api/auth/callback/discord",
null
],
...but the docs don't state that the uri can return a null
redirect_uris? | array of strings | Array of redirect URIs for the app
Steps to Reproduce
When the bot calls GET /application/@me endpoint. In case Discord devs need to try it with my discord bot id: 1123143036763906048
you will observe an array of redirect uris returned, where one of the items is null.
Expected Behavior
I don't expect a null type to be in the response array. But if we assume that's correct API behaviour, then the docs need updating.
Current Behavior
there's a null object in the response, but the docs don't say that's possible.
Screenshots/Videos
No response
Client and System Information
twilight-rs rust client. But that does not matter here .