pub struct Interaction {
pub interaction_id: InteractionId,
pub kind: InteractionType,
pub bot_id: BotId,
pub channel_id: ChannelId,
pub member: Member,
pub app_permissions: Permissions,
pub locale: Option<String>,
pub message: Option<Box<Message>>,
pub data: InteractionData,
pub created_at: u64,
}Expand description
An interaction as delivered to its bot (interaction.created).
Fields§
§interaction_id: InteractionIdHost-assigned.
kind: InteractionTypeThe kind.
bot_id: BotIdThe bot it is for.
channel_id: ChannelIdWhere it happened.
member: MemberThe invoker, as the bot may see it.
app_permissions: PermissionsThe bot’s effective permissions in the channel.
locale: Option<String>The invoker’s client locale.
message: Option<Box<Message>>Type 3: the message holding the component.
data: InteractionDataBy type.
created_at: u64When the host received it, ms.
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
Source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Interaction
impl Debug for Interaction
Source§impl<'de> Deserialize<'de> for Interaction
impl<'de> Deserialize<'de> for Interaction
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 Interaction
impl PartialEq for Interaction
Source§impl Serialize for Interaction
impl Serialize for Interaction
impl StructuralPartialEq for Interaction
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnsafeUnpin for Interaction
impl UnwindSafe for Interaction
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