Enum slashy::commands::CommandArguments [−][src]
pub enum CommandArguments { SubCommand { name: &'static str, description: &'static str, required: bool, options: Option<Vec<CommandArguments>>, func: Option<CommandFunction>, }, SubCommandGroup { name: &'static str, description: &'static str, required: bool, options: Option<Vec<CommandArguments>>, func: Option<CommandFunction>, }, String { name: &'static str, description: &'static str, required: bool, choices: Option<Vec<ArgumentChoice<String>>>, }, Integer { name: &'static str, description: &'static str, required: bool, choices: Option<Vec<ArgumentChoice<i32>>>, }, Boolean { name: &'static str, description: &'static str, required: bool, }, User { name: &'static str, description: &'static str, required: bool, }, Channel { name: &'static str, description: &'static str, required: bool, }, Role { name: &'static str, description: &'static str, required: bool, }, }
Expand description
The argument metadata we store with the command
These are used to parse text / interaction responses into Arguments
Variants
Show fields
Fields of SubCommand
name: &'static str
description: &'static str
required: bool
options: Option<Vec<CommandArguments>>
func: Option<CommandFunction>
Show fields
Fields of SubCommandGroup
name: &'static str
description: &'static str
required: bool
options: Option<Vec<CommandArguments>>
func: Option<CommandFunction>
Show fields
Show fields
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CommandArguments
impl Send for CommandArguments
impl Sync for CommandArguments
impl Unpin for CommandArguments
impl UnwindSafe for CommandArguments