aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/command.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-11-11 14:16:06 +0100
committerGitHub <[email protected]>2018-11-11 14:16:06 +0100
commit16bc3815b3420ae2224667e6e1bbdf768760fd87 (patch)
tree9c6eeae726d78cb31546654c4798e6dc9010f419 /src/framework/standard/command.rs
parentBump version (diff)
downloadserenity-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.rs1
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;