Struct command::object::Interaction
zaun_community_protocol::command::object::Interaction · Struct
pub struct Interaction { … }An interaction as delivered to its bot (interaction.created).
Fields
Section titled “Fields”interaction_id: InteractionId
Section titled “interaction_id: InteractionId”Host-assigned.
kind: InteractionType
Section titled “kind: InteractionType”The kind.
bot_id: BotId
Section titled “bot_id: BotId”The bot it is for.
channel_id: ChannelId
Section titled “channel_id: ChannelId”Where it happened.
member: Member
Section titled “member: Member”The invoker, as the bot may see it.
app_permissions: Permissions
Section titled “app_permissions: Permissions”The bot’s effective permissions in the channel.
locale: Option<String>
Section titled “locale: Option<String>”The invoker’s client locale.
message: Option<Box<Message>>
Section titled “message: Option<Box<Message>>”Type 3: the message holding the component.
data: InteractionData
Section titled “data: InteractionData”By type.
created_at: u64
Section titled “created_at: u64”When the host received it, ms.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, PartialEq, Serialize, StructuralPartialEq