diff options
Diffstat (limited to 'src/framework/command.rs')
| -rw-r--r-- | src/framework/command.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/framework/command.rs b/src/framework/command.rs index 3528e85..01c4c5e 100644 --- a/src/framework/command.rs +++ b/src/framework/command.rs @@ -6,7 +6,10 @@ use std::collections::HashMap; pub type Check = Fn(&mut Context, &Message, &[String], &Arc<Command>) -> bool + 'static; pub type Exec = Fn(&mut Context, &Message, Vec<String>, String) -> Result<(), String> + 'static; -pub type Help = Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, &[String]) +pub type Help = Fn(&mut Context, + &Message, + HashMap<String, Arc<CommandGroup>>, + &[String]) -> Result<(), String> + 'static; pub type BeforeHook = Fn(&mut Context, &Message, &str) -> bool + 'static; |