diff options
Diffstat (limited to 'src/framework/command.rs')
| -rw-r--r-- | src/framework/command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/command.rs b/src/framework/command.rs index 2aa6bbe..a1c25de 100644 --- a/src/framework/command.rs +++ b/src/framework/command.rs @@ -4,7 +4,7 @@ use ::client::Context; use ::model::{Message, Permissions}; use std::collections::HashMap; -pub type Check = Fn(&mut Context, &Message) -> bool + Send + Sync + 'static; +pub type Check = Fn(&mut Context, &Message, &Arc<Command>) -> bool + Send + Sync + 'static; pub type Exec = Fn(&mut Context, &Message, Vec<String>) -> Result<(), String> + Send + Sync + 'static; pub type Help = Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, &[String]) -> Result<(), String> + Send + Sync + 'static; pub type BeforeHook = Fn(&mut Context, &Message, &String) -> bool + Send + Sync + 'static; |