diff options
Diffstat (limited to 'src/framework/help_commands.rs')
| -rw-r--r-- | src/framework/help_commands.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/framework/help_commands.rs b/src/framework/help_commands.rs index a35ce7d..d589ded 100644 --- a/src/framework/help_commands.rs +++ b/src/framework/help_commands.rs @@ -11,8 +11,9 @@ //! use std::env; //! //! let mut client = Client::new(&env::var("DISCORD_TOKEN").unwrap()); +//! use serenity::framework::BuiltinFramework; //! -//! client.with_framework(|f| f +//! client.with_framework(BuiltinFramework::new() //! .command("help", |c| c.exec_help(help_commands::with_embeds))); //! ``` //! @@ -65,8 +66,9 @@ fn remove_aliases(cmds: &HashMap<String, CommandOrAlias>) -> HashMap<&String, &I /// # let mut client = Client::new("token", Handler); /// # /// use serenity::ext::framework::help_commands; +/// use serenity::framework::BuiltinFramework; /// -/// client.with_framework(|f| f +/// client.with_framework(BuiltinFramework::new() /// .command("help", |c| c.exec_help(help_commands::with_embeds))); /// ``` pub fn with_embeds(_: &mut Context, @@ -217,8 +219,9 @@ pub fn with_embeds(_: &mut Context, /// # let mut client = Client::new("token", Handler); /// # /// use serenity::ext::framework::help_commands; +/// use serenity::framework::BuiltinFramework; /// -/// client.with_framework(|f| f +/// client.with_framework(BuiltinFramework::new() /// .command("help", |c| c.exec_help(help_commands::plain))); /// ``` pub fn plain(_: &mut Context, |