diff options
Diffstat (limited to 'src/framework/command.rs')
| -rw-r--r-- | src/framework/command.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Command>; pub type PrefixCheck = Fn(&mut Context, &Message) -> Option<String> + 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<String>, - pub(crate) commands: HashMap<String, CommandOrAlias>, + pub commands: HashMap<String, CommandOrAlias>, } /// Command struct used to store commands internally. |