From 106a4d5f8ff22a829a9486ce88fa8326184828fa Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Fri, 18 Aug 2017 00:53:20 +0200 Subject: Allow the user to be given the original message (as in, the message used to construct the `args`) --- src/framework/create_group.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/framework/create_group.rs') diff --git a/src/framework/create_group.rs b/src/framework/create_group.rs index 74d8a82..a999268 100644 --- a/src/framework/create_group.rs +++ b/src/framework/create_group.rs @@ -55,7 +55,7 @@ impl CreateGroup { /// Adds a command to group with simplified API. /// You can return Err(string) if there's an error. pub fn on(mut self, command_name: &str, f: F) -> Self - where F: Fn(&mut Context, &Message, Vec) -> Result<(), String> + where F: Fn(&mut Context, &Message, Vec, String) -> Result<(), String> + Send + Sync + 'static { -- cgit v1.2.3