From 3e1bb11104ecd30a24ce31f390f6d8289b241532 Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Sun, 12 Mar 2023 14:11:26 -0400 Subject: [PATCH] Correct intents --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 19663e2..8dd644b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,8 @@ 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::GUILDS + let intents = GatewayIntents::non_privileged() + | GatewayIntents::privileged() | GatewayIntents::DIRECT_MESSAGES | GatewayIntents::DIRECT_MESSAGE_REACTIONS | GatewayIntents::DIRECT_MESSAGE_TYPING