-
-
Notifications
You must be signed in to change notification settings - Fork 148
fix: updated application struct #2434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
discord/discord-api-docs#7586 opened an issue on discord api docs repo too |
Erk-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to partial approval, only the latest commit that adds attachment size limits is actually approved.
|
this should probably be split into a separate PR for the documented fields and the workaround for the null urls (that afaik are a discord bug they really should address) |
My app in production was crashing because the redirect_uris could be null, and thus the JSON deserialisation was failing. During deserialization, the null values will be dropped.
I also added several missing fields to the application struct, hoping it may be helpful to someone, using the Discord API response as a source of truth for the missing fields.