Skip to main content

Interaction

Type Alias Interaction 

Source
pub type Interaction = Interaction;

Aliased Type§

pub struct Interaction {
    pub interaction_id: String,
    pub bot_id: String,
    pub channel_id: String,
    pub member: Member,
    pub app_permissions: u64,
    pub locale: Option<String>,
    pub message: Option<Message>,
    pub data: InteractionData,
    pub created_at: u64,
}

Fields§

§interaction_id: String§bot_id: String§channel_id: String§member: Member

The invoker.

§app_permissions: u64

The bot’s effective permissions in the channel.

§locale: Option<String>§message: Option<Message>

For component interactions: the message holding the component.

§data: InteractionData§created_at: u64