aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/command.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-02-15 13:44:10 +0100
committeralex <[email protected]>2018-02-15 13:44:10 +0100
commit29377922d3d79848efcb8d3bd0fbd52c21e81c5d (patch)
tree1dc4510a96dcfc7322e6e2418bf46d21ee7d5041 /src/framework/standard/command.rs
parentAdd 'Get Guild Vanity Url' endpoint (diff)
downloadserenity-29377922d3d79848efcb8d3bd0fbd52c21e81c5d.tar.xz
serenity-29377922d3d79848efcb8d3bd0fbd52c21e81c5d.zip
Add `unrecognised_command` (#276)
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 541d1b9..a971c1f 100644
--- a/src/framework/standard/command.rs
+++ b/src/framework/standard/command.rs
@@ -32,6 +32,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(crate) type InternalCommand = Arc<Command>;
pub type PrefixCheck = Fn(&mut Context, &Message) -> Option<String> + Send + Sync + 'static;