diff options
| author | acdenisSK <[email protected]> | 2017-11-16 16:59:05 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-11-16 16:59:05 +0100 |
| commit | d930758c09cf3f7d56a50f941a6b526dee288e9b (patch) | |
| tree | dff088597c58860f999c4a3f7eb82cc5cb3dba1b /src/client | |
| parent | Document that application owners bypass checks (#218) (diff) | |
| download | serenity-d930758c09cf3f7d56a50f941a6b526dee288e9b.tar.xz serenity-d930758c09cf3f7d56a50f941a6b526dee288e9b.zip | |
Fix doc-tests
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 76dfa7a..e574da3 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -380,7 +380,11 @@ impl Client { /// let mut client = Client::new(&env::var("DISCORD_TOKEN")?, Handler)?; /// client.with_framework(StandardFramework::new() /// .configure(|c| c.prefix("~")) - /// .command("ping", |c| c.exec_str("Pong!"))); + /// .on("ping", |_, msg, _| { + /// msg.channel_id.say("Pong!")?; + /// + /// Ok(()) + /// )); /// # Ok(()) /// # } /// # |