aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorJoe K <[email protected]>2017-06-28 04:34:06 -0400
committeralex <[email protected]>2017-06-28 10:34:06 +0200
commit3db42c96c98fdd6d332347767cb1c276858da98b (patch)
tree681e6ba3f9cc04df330cd4cc07ee3a9074001a7d /src/framework
parentUpdate docs links (diff)
downloadserenity-3db42c96c98fdd6d332347767cb1c276858da98b.tar.xz
serenity-3db42c96c98fdd6d332347767cb1c276858da98b.zip
Make CommandOrAlias and CommandGroup.commands public (#117)
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/command.rs4
-rw-r--r--src/framework/mod.rs2
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;