aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_group.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-20 23:02:38 +0200
committeracdenisSK <[email protected]>2017-08-20 23:05:34 +0200
commit45d72eff173d87b1353d8b5d001775cc49129dab (patch)
tree5ecfdf54bbaeb597bd557c0307ddfd6392b7860e /src/framework/standard/create_group.rs
parentUse wildcard (diff)
downloadserenity-45d72eff173d87b1353d8b5d001775cc49129dab.tar.xz
serenity-45d72eff173d87b1353d8b5d001775cc49129dab.zip
Revamp the args to an `Args` struct
Fixes #142
Diffstat (limited to 'src/framework/standard/create_group.rs')
-rw-r--r--src/framework/standard/create_group.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/framework/standard/create_group.rs b/src/framework/standard/create_group.rs
index b45c41e..fabcc50 100644
--- a/src/framework/standard/create_group.rs
+++ b/src/framework/standard/create_group.rs
@@ -1,6 +1,7 @@
pub use super::command::{Command, CommandGroup, CommandType};
pub(crate) use super::command::CommandOrAlias;
pub use super::create_command::CreateCommand;
+pub use super::Args;
use std::default::Default;
use std::sync::Arc;
@@ -57,7 +58,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>, String) -> Result<(), String>
+ where F: Fn(&mut Context, &Message, Args) -> Result<(), String>
+ Send
+ Sync
+ 'static {