We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4d8a66 commit d3715ffCopy full SHA for d3715ff
src/main.rs
@@ -30,11 +30,11 @@ async fn main() -> Result<(), Error> {
30
},
31
..Default::default()
32
})
33
- .token(token)
34
- .intents(GatewayIntents::all())
35
- .setup(move |_ctx, _ready, _framework| Box::pin(async move { Ok(Data {}) }));
+ .setup(move |_ctx, _ready, _framework| Box::pin(async move { Ok(Data {}) }))
+ .build();
36
37
- framework.run().await.unwrap();
+ let client = serenity::Client::builder(token, GatewayIntents::all()).framework(framework).await;
+ client.unwrap().start().await.unwrap();
38
39
Ok(())
40
}
0 commit comments