aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework
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/05_command_framework
parentAdd User::direct_message example (diff)
downloadserenity-799038187d903a75d60f0c98d013ae87fb665d02.tar.xz
serenity-799038187d903a75d60f0c98d013ae87fb665d02.zip
Deprecate Client::login, add Client::new
Diffstat (limited to 'examples/05_command_framework')
-rw-r--r--examples/05_command_framework/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs
index c8abb9d..4d5ead4 100644
--- a/examples/05_command_framework/src/main.rs
+++ b/examples/05_command_framework/src/main.rs
@@ -32,7 +32,7 @@ fn main() {
// Configure the client with your Discord bot token in the environment.
let token = env::var("DISCORD_TOKEN")
.expect("Expected a token in the environment");
- let mut client = Client::login(&token);
+ let mut client = Client::new(&token);
{
let mut data = client.data.lock().unwrap();