diff --git a/src/main.rs b/src/main.rs index f627ec1378399f639ac9e9b53773dad33c617dad..158132ca2c64c5fd0a7cf3ab58eb819555ca8b1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); }