From d4993ab906e577be286dc80eb8a97a84938ce84d Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Fri, 10 Mar 2023 18:19:20 -0500 Subject: [PATCH] Clean Intents --- src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2d82bb7..ec0344d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,14 +23,12 @@ async 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"); // Set gateway intents, which decides what events the bot will be notified about - let intents = GatewayIntents::GUILD_MESSAGES - | GatewayIntents::GUILD_VOICE_STATES - | GatewayIntents::GUILD_MESSAGE_REACTIONS - | GatewayIntents::GUILD_MESSAGE_TYPING + let intents = GatewayIntents::GUILDS | GatewayIntents::DIRECT_MESSAGES | GatewayIntents::DIRECT_MESSAGE_REACTIONS | GatewayIntents::DIRECT_MESSAGE_TYPING - | GatewayIntents::MESSAGE_CONTENT; + | GatewayIntents::MESSAGE_CONTENT + | GatewayIntents::GUILD_VOICE_STATES; let framework = StandardFramework::new() .configure(|c| c.prefix("ALAN! "))