From 799038187d903a75d60f0c98d013ae87fb665d02 Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Tue, 6 Jun 2017 11:25:28 -0700 Subject: Deprecate Client::login, add Client::new --- examples/01_basic_ping_bot/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/01_basic_ping_bot/src') diff --git a/examples/01_basic_ping_bot/src/main.rs b/examples/01_basic_ping_bot/src/main.rs index 477aea1..25bc52a 100644 --- a/examples/01_basic_ping_bot/src/main.rs +++ b/examples/01_basic_ping_bot/src/main.rs @@ -11,7 +11,7 @@ fn main() { // Create a new instance of the Client, logging in as a bot. This will // automatically prepend your bot token with "Bot ", which is a requirement // by Discord for bot users. - let mut client = Client::login(&token); + let mut client = Client::new(&token); // Set a handler for the `on_message` event - so that whenever a new message // is received - the closure (or function) passed will be called. -- cgit v1.2.3