pub struct ModalSubmitInteraction {
    pub application_id: Id<ApplicationMarker>,
    pub channel_id: Id<ChannelMarker>,
    pub data: ModalInteractionData,
    pub guild_id: Option<Id<GuildMarker>>,
    pub id: Id<InteractionMarker>,
    pub kind: InteractionType,
    pub member: Option<PartialMember>,
    pub token: String,
    pub user: Option<User>,
}
Expand description

Information present in an Interaction::ModalSubmit.

Fields

application_id: Id<ApplicationMarker>

ID of the associated application.

channel_id: Id<ChannelMarker>

ID of the channel the interaction was triggered from.

data: ModalInteractionData

Data from the submitted modal.

guild_id: Option<Id<GuildMarker>>

ID of the guild the interaction was triggered from.

id: Id<InteractionMarker>

ID of the interaction.

kind: InteractionType

Type of the interaction.

member: Option<PartialMember>

Member that triggered the interaction.

Present when the command is used in a guild.

token: String

Token of the interaction.

user: Option<User>

User that triggered the interaction.

Present when the command is used in a direct message.

Implementations

ID of the user that submitted the modal.

This will first check for the member’s user’s ID and, if not present, then check the user’s ID.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more