diff options
Diffstat (limited to 'examples/03_struct_utilities/src/main.rs')
| -rw-r--r-- | examples/03_struct_utilities/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/03_struct_utilities/src/main.rs b/examples/03_struct_utilities/src/main.rs index 455d006..8802fba 100644 --- a/examples/03_struct_utilities/src/main.rs +++ b/examples/03_struct_utilities/src/main.rs @@ -7,7 +7,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); client.on_message(|_ctx, msg| { if msg.content == "!messageme" { |