diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 20:28:14 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 20:28:14 -0700 |
| commit | 50d7f00f1b01f4e0d9c86dbdd05a4d4f7b41f8b1 (patch) | |
| tree | 353e42d9be0b4fd4bd86141490109970c32dd651 /src/framework/standard/create_command.rs | |
| parent | Fix block on spawning multiple shards (diff) | |
| download | serenity-50d7f00f1b01f4e0d9c86dbdd05a4d4f7b41f8b1.tar.xz serenity-50d7f00f1b01f4e0d9c86dbdd05a4d4f7b41f8b1.zip | |
Add Send/Sync to framework items
Diffstat (limited to 'src/framework/standard/create_command.rs')
| -rw-r--r-- | src/framework/standard/create_command.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/framework/standard/create_command.rs b/src/framework/standard/create_command.rs index a8421e6..b6e8fda 100644 --- a/src/framework/standard/create_command.rs +++ b/src/framework/standard/create_command.rs @@ -117,6 +117,8 @@ impl CreateCommand { pub fn exec_help<F>(mut self, f: F) -> Self where F: Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, Args) -> Result<(), String> + + Send + + Sync + 'static { self.0.exec = CommandType::WithCommands(Box::new(f)); |