aboutsummaryrefslogtreecommitdiff
path: root/README.md
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 /README.md
parentAbstract opcodes to enums (diff)
downloadserenity-517076461cd772f92a20925fff0b748df363ac6b.tar.xz
serenity-517076461cd772f92a20925fff0b748df363ac6b.zip
Fix readme example to properly use framework
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3656424..3149d87 100644
--- a/README.md
+++ b/README.md
@@ -50,8 +50,8 @@ use serenity::Client;
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 "~"
.on("ping", |_context, message| drop(message.reply("Pong!"))));
let _ = client.start(); // start listening for events by starting a connection