From 3db42c96c98fdd6d332347767cb1c276858da98b Mon Sep 17 00:00:00 2001 From: Joe K Date: Wed, 28 Jun 2017 04:34:06 -0400 Subject: Make CommandOrAlias and CommandGroup.commands public (#117) --- src/framework/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/framework/command.rs') diff --git a/src/framework/command.rs b/src/framework/command.rs index fcf039a..2aa6bbe 100644 --- a/src/framework/command.rs +++ b/src/framework/command.rs @@ -12,7 +12,7 @@ pub type AfterHook = Fn(&mut Context, &Message, &String, Result<(), String>) + S pub(crate) type InternalCommand = Arc; pub type PrefixCheck = Fn(&mut Context, &Message) -> Option + Send + Sync + 'static; -pub(crate) enum CommandOrAlias { +pub enum CommandOrAlias { Alias(String), Command(InternalCommand), } @@ -28,7 +28,7 @@ pub enum CommandType { #[derive(Default)] pub struct CommandGroup { pub prefix: Option, - pub(crate) commands: HashMap, + pub commands: HashMap, } /// Command struct used to store commands internally. -- cgit v1.2.3