#[repr(u8)]pub enum ApplicationCommandType {
ChatInput = 1,
User = 2,
Message = 3,
}Expand description
Variants§
ChatInput = 1
Slash commands; a text-based command that shows up when a user types /
User = 2
A UI-based command that shows up when you right click or tap on a user
Message = 3
A UI-based command that shows up when you right click or tap on a message
Trait Implementations§
Source§impl Debug for ApplicationCommandType
impl Debug for ApplicationCommandType
Source§impl<'de> Deserialize<'de> for ApplicationCommandType
impl<'de> Deserialize<'de> for ApplicationCommandType
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 ApplicationCommandType
impl RefUnwindSafe for ApplicationCommandType
impl Send for ApplicationCommandType
impl Sync for ApplicationCommandType
impl Unpin for ApplicationCommandType
impl UnwindSafe for ApplicationCommandType
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