Struct twilight_model::application::interaction::application_command::CommandData [−][src]
pub struct CommandData {
pub id: CommandId,
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: CommandIdID 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
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]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 CommandDataimpl Send for CommandDataimpl Sync for CommandDataimpl Unpin for CommandDataimpl UnwindSafe for CommandDataBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more