From 005437f56869e846ff677b6516605def0c4de7bc Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Wed, 16 Aug 2017 22:24:43 +0200 Subject: Provide the args to the checks --- src/framework/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/framework/command.rs') 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) -> bool + 'static; +pub type Check = Fn(&mut Context, &Message, &[String], &Arc) -> bool + 'static; pub type Exec = Fn(&mut Context, &Message, Vec) -> Result<(), String> + 'static; pub type Help = Fn(&mut Context, &Message, HashMap>, &[String]) -> Result<(), String> -- cgit v1.2.3