aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_group.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2017-11-30 16:55:58 +0100
committeralex <[email protected]>2017-11-30 16:55:58 +0100
commit031fc92e02c314cce9fc8febcc7900fa2d885941 (patch)
tree3d847544001f36f502e39a41e2d86dbf3474a0f0 /src/framework/standard/create_group.rs
parentUse `ToString`'s blanket impl for `Display`s (diff)
downloadserenity-031fc92e02c314cce9fc8febcc7900fa2d885941.tar.xz
serenity-031fc92e02c314cce9fc8febcc7900fa2d885941.zip
Make help-commands customisable (#227)
Diffstat (limited to 'src/framework/standard/create_group.rs')
-rw-r--r--src/framework/standard/create_group.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/framework/standard/create_group.rs b/src/framework/standard/create_group.rs
index 25279ca..77fb348 100644
--- a/src/framework/standard/create_group.rs
+++ b/src/framework/standard/create_group.rs
@@ -1,6 +1,6 @@
pub use super::command::{Command, CommandGroup, CommandOptions, Error as CommandError};
pub(crate) use super::command::CommandOrAlias;
-pub(crate) use super::command::{Help, HelpFunction};
+pub use super::create_help_command::{CreateHelpCommand};
pub use super::create_command::{CreateCommand, FnOrCommand};
pub use super::Args;
@@ -90,13 +90,6 @@ impl CreateGroup {
self
}
- /// Sets what code should be execute when a user requests for `(prefix)help`.
- pub fn help(mut self, f: HelpFunction) -> Self {
- self.0.help = Some(Arc::new(Help(f)));
-
- self
- }
-
/// If prefix is set, it will be required before all command names.
/// For example, if bot prefix is "~" and group prefix is "image"
/// we'd call a subcommand named "hibiki" by sending "~image hibiki".