From eb47559fa00c13c8fdc8f40a8fe3d06690c0570c Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Thu, 13 Jul 2017 23:09:22 +0200 Subject: Provide the command into the checks Although in the future, this will be changed to just bits of data of an actual command that wouldn't collide with the framework's code, but would still be useful for a check to use. --- src/framework/create_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/framework/create_command.rs') diff --git a/src/framework/create_command.rs b/src/framework/create_command.rs index abed3ea..804b7c3 100644 --- a/src/framework/create_command.rs +++ b/src/framework/create_command.rs @@ -62,7 +62,7 @@ impl CreateCommand { /// } /// ``` pub fn check(mut self, check: F) -> Self - where F: Fn(&mut Context, &Message) -> bool + Send + Sync + 'static { + where F: Fn(&mut Context, &Message, &Arc) -> bool + Send + Sync + 'static { self.0.checks.push(Box::new(check)); self -- cgit v1.2.3