aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-06 11:25:28 -0700
committerZeyla Hellyer <[email protected]>2017-06-06 11:25:28 -0700
commit799038187d903a75d60f0c98d013ae87fb665d02 (patch)
treeb0d8ccff9a6e1fc4360a6eebfe5be2335d9936d4 /examples/07_sample_bot_structure/src
parentAdd User::direct_message example (diff)
downloadserenity-799038187d903a75d60f0c98d013ae87fb665d02.tar.xz
serenity-799038187d903a75d60f0c98d013ae87fb665d02.zip
Deprecate Client::login, add Client::new
Diffstat (limited to 'examples/07_sample_bot_structure/src')
-rw-r--r--examples/07_sample_bot_structure/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/07_sample_bot_structure/src/main.rs b/examples/07_sample_bot_structure/src/main.rs
index 85600eb..42ccd64 100644
--- a/examples/07_sample_bot_structure/src/main.rs
+++ b/examples/07_sample_bot_structure/src/main.rs
@@ -18,7 +18,7 @@ use serenity::Client;
use std::env;
fn main() {
- let mut client = Client::login(&env::var("DISCORD_TOKEN").unwrap());
+ let mut client = Client::new(&env::var("DISCORD_TOKEN").unwrap());
client.with_framework(|f| f
.configure(|c| c.prefix("~"))