Skip to content

Commit

Permalink
Fix null error in InstallationContextConfig (#2917)
Browse files Browse the repository at this point in the history
The `oauth2_install_params` field can be null. This changes its type to be
`Option<InstallParams>` to match the fact.

https://discord.com/developers/docs/resources/application#application-object-application-structure.
  • Loading branch information
ValgulNecron authored Jul 19, 2024
1 parent 8bbc1de commit b234d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/application/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ enum_number! {
#[cfg(feature = "unstable_discord_api")]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct InstallationContextConfig {
pub oauth2_install_params: InstallParams,
pub oauth2_install_params: Option<InstallParams>,
}

/// Information about the Team group of the application.
Expand Down

0 comments on commit b234d04

Please sign in to comment.