Skip to content

Conversation

@roberts-pumpurs
Copy link

@roberts-pumpurs roberts-pumpurs commented May 31, 2025

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.

@github-actions github-actions bot added c-model Affects the model crate t-fix Fixes a bug in the library labels May 31, 2025
@roberts-pumpurs
Copy link
Author

discord/discord-api-docs#7586 opened an issue on discord api docs repo too

@github-actions github-actions bot added c-cache Affects the cache crate c-standby Affects the standby crate labels Jul 21, 2025
Copy link
Member

@Erk- Erk- left a 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.

@AEnterprise
Copy link
Member

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)

@Erk- Erk- added the w-unapproved Proposal for change has *not* been approved by @twilight-rs/core. label Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-cache Affects the cache crate c-model Affects the model crate c-standby Affects the standby crate t-fix Fixes a bug in the library w-unapproved Proposal for change has *not* been approved by @twilight-rs/core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants