Enum twilight_model::application::callback::InteractionResponse [−][src]
pub enum InteractionResponse {
Pong,
ChannelMessageWithSource(CallbackData),
DeferredChannelMessageWithSource(CallbackData),
}Expand description
Payload used for responding to an interaction.
Refer to the discord docs for more information.
Variants
Used when responding to an interaction of type Ping.
ChannelMessageWithSource(CallbackData)Responds to an interaction with a message.
DeferredChannelMessageWithSource(CallbackData)Acknowledges an interaction, showing a loading state.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for InteractionResponseimpl Send for InteractionResponseimpl Sync for InteractionResponseimpl Unpin for InteractionResponseimpl UnwindSafe for InteractionResponseBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more