aboutsummaryrefslogtreecommitdiff
path: root/src/framework/create_group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/create_group.rs')
-rw-r--r--src/framework/create_group.rs2
1 files changed, 1 insertions, 1 deletions
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<F>(mut self, command_name: &str, f: F) -> Self
- where F: Fn(&mut Context, &Message, Vec<String>) -> Result<(), String>
+ where F: Fn(&mut Context, &Message, Vec<String>, String) -> Result<(), String>
+ Send
+ Sync
+ 'static {