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 for InteractionResponseData
impl PartialEq for InteractionResponseData
source§impl Serialize for InteractionResponseData
impl Serialize for InteractionResponseData
impl StructuralPartialEq for InteractionResponseData
Auto Trait Implementations§
impl Freeze for InteractionResponseData
impl RefUnwindSafe for InteractionResponseData
impl Send for InteractionResponseData
impl Sync for InteractionResponseData
impl Unpin for InteractionResponseData
impl UnwindSafe for InteractionResponseData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)