aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-10-23 15:25:57 -0700
committerAustin Hellyer <[email protected]>2016-10-23 15:25:57 -0700
commit517076461cd772f92a20925fff0b748df363ac6b (patch)
tree9102210e56958a1b8ff3cd7d2b7a57e0f32a9894 /src
parentAbstract opcodes to enums (diff)
downloadserenity-517076461cd772f92a20925fff0b748df363ac6b.tar.xz
serenity-517076461cd772f92a20925fff0b748df363ac6b.zip
Fix readme example to properly use framework
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2e75622..2f68637 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -48,8 +48,9 @@
//! fn main() {
//! // Login with a bot token from the environment
//! let client = Client::login_bot(env::var("DISCORD_TOKEN").expect("token"));
-//! client.with_framework(|c| c
-//! .prefix("~") // set the bot's prefix to '~'
+//! client.with_framework(|f| f
+//! .configure(|c| c.prefix("~")) // set the bot's prefix to "~"
+//! .prefix("~")
//! .on("ping", |_context, message| drop(message.reply("Pong!"))));
//!
//! let _ = client.start(); // start listening for events by starting a connection