diff options
Diffstat (limited to 'examples/07_sample_bot_structure/src')
| -rw-r--r-- | examples/07_sample_bot_structure/src/main.rs | 2 |
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("~")) |