pub struct SlashCommandEvent {
pub command: String,
pub text: String,
pub channel_id: String,
pub user: Author,
pub trigger_id: Option<String>,
pub adapter_name: String,
}Expand description
A slash command was invoked by a user.
Fields§
§command: StringThe command name (e.g. /deploy).
text: StringAny text following the command name.
channel_id: StringChannel where the command was issued.
user: AuthorThe user who invoked the command.
trigger_id: Option<String>Trigger identifier for opening modals or other follow-ups.
adapter_name: StringName of the adapter that delivered this event.
Trait Implementations§
Source§impl Clone for SlashCommandEvent
impl Clone for SlashCommandEvent
Source§fn clone(&self) -> SlashCommandEvent
fn clone(&self) -> SlashCommandEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlashCommandEvent
impl Debug for SlashCommandEvent
Source§impl<'de> Deserialize<'de> for SlashCommandEvent
impl<'de> Deserialize<'de> for SlashCommandEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SlashCommandEvent
impl RefUnwindSafe for SlashCommandEvent
impl Send for SlashCommandEvent
impl Sync for SlashCommandEvent
impl Unpin for SlashCommandEvent
impl UnsafeUnpin for SlashCommandEvent
impl UnwindSafe for SlashCommandEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more