aboutsummaryrefslogtreecommitdiff
path: root/src/framework/help_commands.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-22 16:59:10 +0200
committeracdenisSK <[email protected]>2017-07-22 16:59:10 +0200
commit2b053ea007d6ca9cc820cb910597e8b5dad89d70 (patch)
treec0664957758043b80fc7e40d9acc7923da53d3c1 /src/framework/help_commands.rs
parentRemove the uneccessary function and `Send + Sync` bounds (diff)
downloadserenity-2b053ea007d6ca9cc820cb910597e8b5dad89d70.tar.xz
serenity-2b053ea007d6ca9cc820cb910597e8b5dad89d70.zip
Fix #130
Removed action support from the builtin one as well, due to it adding some uneccassery complexity and it being only asked upon by one user
Diffstat (limited to 'src/framework/help_commands.rs')
-rw-r--r--src/framework/help_commands.rs9
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,