Enum serenity::framework::standard::CommandType
[−]
[src]
pub enum CommandType { StringResponse(String), Basic(fn(_: &mut Context, _: &Message, _: Args) -> Result<(), Error>), WithCommands(fn(_: &mut Context, _: &Message, _: HashMap<String, Arc<CommandGroup>>, _: Args) -> Result<(), Error>), }
Command function type. Allows to access internal framework things inside your commands.
Variants
StringResponse(String)
Basic(fn(_: &mut Context, _: &Message, _: Args) -> Result<(), Error>)
WithCommands(fn(_: &mut Context, _: &Message, _: HashMap<String, Arc<CommandGroup>>, _: Args) -> Result<(), Error>)