aboutsummaryrefslogtreecommitdiff
path: root/src/framework/command.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-16 22:24:43 +0200
committeracdenisSK <[email protected]>2017-08-16 22:25:30 +0200
commit005437f56869e846ff677b6516605def0c4de7bc (patch)
tree8059c36c4564cafcd6effe086daa4c7ebe6d0218 /src/framework/command.rs
parenta little for-loop to iterator change (diff)
downloadserenity-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.rs2
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>