aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-11-18 11:40:06 -0800
committerZeyla Hellyer <[email protected]>2017-11-18 11:40:06 -0800
commite6079cddc8f185939b49bc0b6b7a8c4a4c09a93a (patch)
treec58ebb9d95b721dcf3d0afb8e0f5a50a46041508 /src/framework
parentAdd `cmd` to `Create(Command|Group)` (diff)
downloadserenity-e6079cddc8f185939b49bc0b6b7a8c4a4c09a93a.tar.xz
serenity-e6079cddc8f185939b49bc0b6b7a8c4a4c09a93a.zip
Fix framework doctests
Fixes the following doctests for the changes introduced in commit [f10b9d7]: - client::Client::with_framework - framework::standard::configuration::Configuration::disabled_commands - framework::standard::configuration::Configuration::dynamic_prefix [f10b9d7]: f10b9d77f0b94864fa20688e3c99de6cec7ca6f9
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/standard/configuration.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/framework/standard/configuration.rs b/src/framework/standard/configuration.rs
index a481c6d..23148e3 100644
--- a/src/framework/standard/configuration.rs
+++ b/src/framework/standard/configuration.rs
@@ -171,9 +171,9 @@ impl Configuration {
/// client.with_framework(StandardFramework::new()
/// .on("ping", |_, msg, _| {
/// msg.channel_id.say("Pong!")?;
- ///
+ ///
/// Ok(())
- /// ))
+ /// })
/// .configure(|c| c.disabled_commands(disabled)));
/// ```
pub fn disabled_commands(mut self, commands: HashSet<String>) -> Self {
@@ -203,9 +203,9 @@ impl Configuration {
/// client.with_framework(StandardFramework::new()
/// .on("ping", |_, msg, _| {
/// msg.channel_id.say("Pong!")?;
- ///
+ ///
/// Ok(())
- /// ))
+ /// })
/// .configure(|c| c.dynamic_prefix(|_, msg| {
/// Some(if msg.channel_id.0 % 5 == 0 {
/// "!"