diff options
| author | acdenisSK <[email protected]> | 2017-08-16 22:24:43 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-16 22:25:30 +0200 |
| commit | 005437f56869e846ff677b6516605def0c4de7bc (patch) | |
| tree | 8059c36c4564cafcd6effe086daa4c7ebe6d0218 /src/framework/command.rs | |
| parent | a little for-loop to iterator change (diff) | |
| download | serenity-005437f56869e846ff677b6516605def0c4de7bc.tar.xz serenity-005437f56869e846ff677b6516605def0c4de7bc.zip | |
Provide the args to the checks
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 7a44bc4..74afb0d 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, &Arc<Command>) -> bool + 'static; +pub type Check = Fn(&mut Context, &Message, &[String], &Arc<Command>) -> bool + 'static; pub type Exec = Fn(&mut Context, &Message, Vec<String>) -> Result<(), String> + 'static; pub type Help = Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, &[String]) -> Result<(), String> |