diff options
| author | Andrej <[email protected]> | 2017-07-31 10:36:57 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2017-07-31 10:36:57 +0200 |
| commit | 53dc3cb714e5e279dde02b15e2e353f71594eb74 (patch) | |
| tree | 8a3f001a0264340b23401fbd79a40f211cfbe43f /src/framework | |
| parent | Reuse `num` (diff) | |
| download | serenity-53dc3cb714e5e279dde02b15e2e353f71594eb74.tar.xz serenity-53dc3cb714e5e279dde02b15e2e353f71594eb74.zip | |
Fix failing tests (#133)
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/help_commands.rs | 6 | ||||
| -rw-r--r-- | src/framework/mod.rs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/framework/help_commands.rs b/src/framework/help_commands.rs index 6db3561..dec0053 100644 --- a/src/framework/help_commands.rs +++ b/src/framework/help_commands.rs @@ -6,7 +6,7 @@ //! embeds: //! //! ```rs,no_run -//! use serenity::ext::framework::help_commands; +//! use serenity::framework::help_commands; //! use serenity::Client; //! use std::env; //! @@ -63,7 +63,7 @@ fn remove_aliases(cmds: &HashMap<String, CommandOrAlias>) -> HashMap<&String, &I /// # impl EventHandler for Handler {} /// # let mut client = Client::new("token", Handler); /// # -/// use serenity::ext::framework::help_commands; +/// use serenity::framework::help_commands; /// use serenity::framework::BuiltinFramework; /// /// client.with_framework(BuiltinFramework::new() @@ -216,7 +216,7 @@ pub fn with_embeds(_: &mut Context, /// # impl EventHandler for Handler {} /// # let mut client = Client::new("token", Handler); /// # -/// use serenity::ext::framework::help_commands; +/// use serenity::framework::help_commands; /// use serenity::framework::BuiltinFramework; /// /// client.with_framework(BuiltinFramework::new() diff --git a/src/framework/mod.rs b/src/framework/mod.rs index ccebfd4..bc6afbd 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -339,11 +339,11 @@ impl BuiltinFramework { /// client.with_framework(BuiltinFramework::new() /// .complex_bucket("basic", 2, 10, 3, |_, guild_id, channel_id, user_id| { /// // check if the guild is `123` and the channel where the command(s) was called: - /// `456` + /// // `456` /// // and if the user who called the command(s) is `789` /// // otherwise don't apply the bucket at all. - /// guild_id.is_some() && guild_id.unwrap() == 123 && channel_id == 456 && user_id - /// == 789 + /// guild_id.is_some() && guild_id.unwrap() == 123 && channel_id == 456 + /// && user_id == 789 /// }) /// .command("ping", |c| c /// .bucket("basic") |