diff options
Diffstat (limited to 'examples/01_basic_ping_bot/src')
| -rw-r--r-- | examples/01_basic_ping_bot/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |