Enum discord_flows::model::interaction::Interaction
source · pub enum Interaction {
Ping(PingInteraction),
ApplicationCommand(ApplicationCommandInteraction),
MessageComponent(MessageComponentInteraction),
Autocomplete(AutocompleteInteraction),
ModalSubmit(ModalSubmitInteraction),
}Expand description
Variants§
Ping(PingInteraction)
ApplicationCommand(ApplicationCommandInteraction)
MessageComponent(MessageComponentInteraction)
Autocomplete(AutocompleteInteraction)
ModalSubmit(ModalSubmitInteraction)
Implementations§
source§impl Interaction
impl Interaction
sourcepub fn id(&self) -> InteractionId
pub fn id(&self) -> InteractionId
Gets the interaction Id.
sourcepub fn kind(&self) -> InteractionType
pub fn kind(&self) -> InteractionType
Gets the interaction type
sourcepub fn app_permissions(&self) -> Option<Permissions>
pub fn app_permissions(&self) -> Option<Permissions>
Permissions the app or bot has within the channel the interaction was sent from.
sourcepub fn application_id(&self) -> ApplicationId
pub fn application_id(&self) -> ApplicationId
Gets the interaction application Id
sourcepub fn guild_locale(&self) -> Option<&str>
pub fn guild_locale(&self) -> Option<&str>
Gets the invoked guild locale.
sourcepub fn ping(self) -> Option<PingInteraction>
pub fn ping(self) -> Option<PingInteraction>
Converts this to a PingInteraction
sourcepub fn as_ping(&self) -> Option<&PingInteraction>
pub fn as_ping(&self) -> Option<&PingInteraction>
Converts this to a PingInteraction
sourcepub fn into_ping(self) -> Option<PingInteraction>
pub fn into_ping(self) -> Option<PingInteraction>
Converts this to a PingInteraction
sourcepub fn application_command(self) -> Option<ApplicationCommandInteraction>
pub fn application_command(self) -> Option<ApplicationCommandInteraction>
Converts this to an ApplicationCommandInteraction
sourcepub fn as_application_command(&self) -> Option<&ApplicationCommandInteraction>
pub fn as_application_command(&self) -> Option<&ApplicationCommandInteraction>
Converts this to an ApplicationCommandInteraction
sourcepub fn into_application_command(self) -> Option<ApplicationCommandInteraction>
pub fn into_application_command(self) -> Option<ApplicationCommandInteraction>
Converts this to an ApplicationCommandInteraction
sourcepub fn message_component(self) -> Option<MessageComponentInteraction>
pub fn message_component(self) -> Option<MessageComponentInteraction>
Converts this to a MessageComponentInteraction
sourcepub fn as_message_component(&self) -> Option<&MessageComponentInteraction>
pub fn as_message_component(&self) -> Option<&MessageComponentInteraction>
Converts this to a MessageComponentInteraction
sourcepub fn into_message_component(self) -> Option<MessageComponentInteraction>
pub fn into_message_component(self) -> Option<MessageComponentInteraction>
Converts this to a MessageComponentInteraction
sourcepub fn autocomplete(self) -> Option<AutocompleteInteraction>
pub fn autocomplete(self) -> Option<AutocompleteInteraction>
Converts this to a AutocompleteInteraction
sourcepub fn as_autocomplete(&self) -> Option<&AutocompleteInteraction>
pub fn as_autocomplete(&self) -> Option<&AutocompleteInteraction>
Converts this to a AutocompleteInteraction
sourcepub fn into_autocomplete(self) -> Option<AutocompleteInteraction>
pub fn into_autocomplete(self) -> Option<AutocompleteInteraction>
Converts this to a AutocompleteInteraction
sourcepub fn modal_submit(self) -> Option<ModalSubmitInteraction>
pub fn modal_submit(self) -> Option<ModalSubmitInteraction>
Converts this to a ModalSubmitInteraction
sourcepub fn as_modal_submit(&self) -> Option<&ModalSubmitInteraction>
pub fn as_modal_submit(&self) -> Option<&ModalSubmitInteraction>
Converts this to a ModalSubmitInteraction
sourcepub fn into_modal_submit(self) -> Option<ModalSubmitInteraction>
pub fn into_modal_submit(self) -> Option<ModalSubmitInteraction>
Converts this to a ModalSubmitInteraction
Trait Implementations§
source§impl Clone for Interaction
impl Clone for Interaction
source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more