pub struct ApplicationCommandData {
pub name: String,
pub description: String,
pub options: Vec<CommandOption>,
pub default_permission: bool,
pub group: bool,
}Expand description
Data sent to discord to create a command.
This type is used in the CreateCommand trait.
To convert it into a Command, use the From (or Into) trait.
Fields
name: StringName of the command. It must be 32 characters or less.
description: StringDescription of the option. It must be 100 characters or less.
options: Vec<CommandOption>List of command options.
default_permission: boolWhether the command is enabled by default when the app is added to a guild.
group: boolWhether the command is a subcommand group.
Trait Implementations
Performs the conversion.
Performs the conversion.
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 ApplicationCommandData
impl Send for ApplicationCommandData
impl Sync for ApplicationCommandData
impl Unpin for ApplicationCommandData
impl UnwindSafe for ApplicationCommandData
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