diff options
| author | Lakelezz <[email protected]> | 2018-11-11 14:16:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-11 14:16:06 +0100 |
| commit | 16bc3815b3420ae2224667e6e1bbdf768760fd87 (patch) | |
| tree | 9c6eeae726d78cb31546654c4798e6dc9010f419 /src/framework/standard/command.rs | |
| parent | Bump version (diff) | |
| download | serenity-16bc3815b3420ae2224667e6e1bbdf768760fd87.tar.xz serenity-16bc3815b3420ae2224667e6e1bbdf768760fd87.zip | |
Add Function to call if a Message without Command has been sent (#430)
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index 7757f91..5345f4b 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -60,6 +60,7 @@ impl HelpCommand for Help { pub type BeforeHook = Fn(&mut Context, &Message, &str) -> bool + Send + Sync + 'static; pub type AfterHook = Fn(&mut Context, &Message, &str, Result<(), Error>) + Send + Sync + 'static; pub type UnrecognisedCommandHook = Fn(&mut Context, &Message, &str) + Send + Sync + 'static; +pub type MessageWithoutCommandHook = Fn(&mut Context, &Message) + Send + Sync + 'static; pub(crate) type InternalCommand = Arc<Command>; pub type PrefixCheck = Fn(&mut Context, &Message) -> Option<String> + Send + Sync + 'static; |