pub struct CommandData {
pub id: Id<CommandMarker>,
pub name: String,
pub options: Vec<CommandDataOption>,
pub resolved: Option<CommandInteractionDataResolved>,
}Expand description
Data received when an ApplicationCommand interaction is executed.
Refer to the discord docs for more information.
Fields
id: Id<CommandMarker>ID of the command.
name: StringName of the command.
options: Vec<CommandDataOption>List of parsed options specified by the user.
resolved: Option<CommandInteractionDataResolved>Data sent if any of the options are discord types.
Trait Implementations
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
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 CommandData
impl Send for CommandData
impl Sync for CommandData
impl Unpin for CommandData
impl UnwindSafe for CommandData
Blanket Implementations
Mutably borrows from an owned value. Read more
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