diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/framework/command.rs | 4 | ||||
| -rw-r--r-- | src/framework/mod.rs | 2 |
2 files changed, 3 insertions, 3 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. diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 671771f..9a84b7f 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -64,7 +64,7 @@ mod buckets; pub(crate) use self::buckets::{Bucket, Ratelimit}; pub use self::command::{Command, CommandType, CommandGroup}; -pub(crate) use self::command::CommandOrAlias; +pub use self::command::CommandOrAlias; pub use self::configuration::Configuration; pub use self::create_command::CreateCommand; pub use self::create_group::CreateGroup; |