From 031fc92e02c314cce9fc8febcc7900fa2d885941 Mon Sep 17 00:00:00 2001 From: Lakelezz <12222135+Lakelezz@users.noreply.github.com> Date: Thu, 30 Nov 2017 16:55:58 +0100 Subject: Make help-commands customisable (#227) --- src/framework/standard/create_group.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/framework/standard/create_group.rs') 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". -- cgit v1.2.3