From 6e25031683025e6d7f4dd383196a81d0072557e6 Mon Sep 17 00:00:00 2001 From: Michael Krasnitski Date: Wed, 25 Oct 2023 20:11:48 -0400 Subject: [PATCH] Remove `PingInteraction::guild_locale` field --- src/model/application/interaction.rs | 2 +- src/model/application/ping_interaction.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/model/application/interaction.rs b/src/model/application/interaction.rs index c4488e2c513..4b75e2b3712 100644 --- a/src/model/application/interaction.rs +++ b/src/model/application/interaction.rs @@ -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(), diff --git a/src/model/application/ping_interaction.rs b/src/model/application/ping_interaction.rs index 5c4616dd1cc..f691b7d3a83 100644 --- a/src/model/application/ping_interaction.rs +++ b/src/model/application/ping_interaction.rs @@ -16,6 +16,4 @@ pub struct PingInteraction { pub token: String, /// Always `1`. pub version: u8, - /// The guild's preferred locale. - pub guild_locale: Option, }