Struct twilight_model::http::interaction::InteractionResponseData
source · pub struct InteractionResponseData {
pub allowed_mentions: Option<AllowedMentions>,
pub attachments: Option<Vec<Attachment>>,
pub choices: Option<Vec<CommandOptionChoice>>,
pub components: Option<Vec<Component>>,
pub content: Option<String>,
pub custom_id: Option<String>,
pub embeds: Option<Vec<Embed>>,
pub flags: Option<MessageFlags>,
pub title: Option<String>,
pub tts: Option<bool>,
}Expand description
Data included in an interaction response.
Fields§
§allowed_mentions: Option<AllowedMentions>Allowed mentions of the response.
attachments: Option<Vec<Attachment>>List of attachments on the response.
choices: Option<Vec<CommandOptionChoice>>List of autocomplete alternatives.
Can only be used with
InteractionResponseType::ApplicationCommandAutocompleteResult.
components: Option<Vec<Component>>List of components on the response.
content: Option<String>Content of the response.
custom_id: Option<String>For InteractionResponseType::Modal, user defined identifier.
embeds: Option<Vec<Embed>>Embeds of the response.
flags: Option<MessageFlags>Interaction response data flags.
The supported flags are MessageFlags::SUPPRESS_EMBEDS and
MessageFlags::EPHEMERAL.
title: Option<String>For InteractionResponseType::Modal, title of the modal.
tts: Option<bool>Whether the response is TTS.
Trait Implementations§
source§impl Clone for InteractionResponseData
impl Clone for InteractionResponseData
source§fn clone(&self) -> InteractionResponseData
fn clone(&self) -> InteractionResponseData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InteractionResponseData
impl Debug for InteractionResponseData
source§impl Default for InteractionResponseData
impl Default for InteractionResponseData
source§fn default() -> InteractionResponseData
fn default() -> InteractionResponseData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InteractionResponseData
impl<'de> Deserialize<'de> for InteractionResponseData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<InteractionResponseData> for InteractionResponseData
impl PartialEq<InteractionResponseData> for InteractionResponseData
source§fn eq(&self, other: &InteractionResponseData) -> bool
fn eq(&self, other: &InteractionResponseData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.