Correct intents

This commit is contained in:
2023-03-12 14:11:26 -04:00
parent 57457a0724
commit 3e1bb11104

View File

@@ -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