aboutsummaryrefslogtreecommitdiff
path: root/src/framework/command.rs
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/command.rs
parentUpdate docs links (diff)
downloadserenity-3db42c96c98fdd6d332347767cb1c276858da98b.tar.xz
serenity-3db42c96c98fdd6d332347767cb1c276858da98b.zip
Make CommandOrAlias and CommandGroup.commands public (#117)
Diffstat (limited to 'src/framework/command.rs')
-rw-r--r--src/framework/command.rs4
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.