Skip to content

Commit

Permalink
Remove PingInteraction::guild_locale field
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrasnitski committed Nov 1, 2023
1 parent 2a81062 commit 6e25031
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/model/application/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Interaction {
#[must_use]
pub fn guild_locale(&self) -> Option<&str> {
match self {
Self::Ping(i) => i.guild_locale.as_deref(),
Self::Ping(_) => None,
Self::Command(i) | Self::Autocomplete(i) => i.guild_locale.as_deref(),
Self::Component(i) => i.guild_locale.as_deref(),
Self::Modal(i) => i.guild_locale.as_deref(),
Expand Down
2 changes: 0 additions & 2 deletions src/model/application/ping_interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ pub struct PingInteraction {
pub token: String,
/// Always `1`.
pub version: u8,
/// The guild's preferred locale.
pub guild_locale: Option<String>,
}

0 comments on commit 6e25031

Please sign in to comment.