1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use crate::model::id::{ApplicationId, InteractionId};
use crate::model::interactions::InteractionType;
/// A ping interaction, which can only be received through an endpoint url.
#[derive(Clone, Debug, Serialize, Deserialize)]
#[non_exhaustive]
pub struct PingInteraction {
/// Id of the interaction.
pub id: InteractionId,
/// Id of the application this interaction is for.
pub application_id: ApplicationId,
/// The type of interaction.
#[serde(rename = "type")]
pub kind: InteractionType,
/// A continuation token for responding to the interaction.
pub token: String,
/// Always `1`.
pub version: u8,
/// The guild's preferred locale.
pub guild_locale: Option<String>,
}