diff options
| author | Joe K <[email protected]> | 2017-06-28 04:34:06 -0400 |
|---|---|---|
| committer | alex <[email protected]> | 2017-06-28 10:34:06 +0200 |
| commit | 3db42c96c98fdd6d332347767cb1c276858da98b (patch) | |
| tree | 681e6ba3f9cc04df330cd4cc07ee3a9074001a7d /src/framework/command.rs | |
| parent | Update docs links (diff) | |
| download | serenity-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.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. |