Skip to content

redirect uris can return null (and the docs don't state they can) #7586

@roberts-pumpurs

Description

@roberts-pumpurs

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions