Skip to content
Snippets Groups Projects
Commit eda6295a authored by Stephen D's avatar Stephen D
Browse files

gateway intents fix

parent d85e5c19
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,15 @@ async fn main() {
let config = config::get_conf();
let token = config.token;
let mut client = Client::builder(&token, GatewayIntents::default())
.event_handler(Dispatcher::default())
.await
.expect("Error creating client");
let mut client = Client::builder(
&token,
GatewayIntents::GUILD_MESSAGES
.union(GatewayIntents::GUILD_MESSAGE_REACTIONS)
.union(GatewayIntents::MESSAGE_CONTENT),
)
.event_handler(Dispatcher::default())
.await
.expect("Error creating client");
if let Err(e) = client.start().await {
eprintln!("Client error: {}", e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment