diff options
Diffstat (limited to 'src/framework/create_command.rs')
| -rw-r--r-- | src/framework/create_command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<F>(mut self, check: F) -> Self - where F: Fn(&mut Context, &Message) -> bool + Send + Sync + 'static { + where F: Fn(&mut Context, &Message, &Arc<Command>) -> bool + Send + Sync + 'static { self.0.checks.push(Box::new(check)); self |