From 37e5c50800a0f7b1113c020a33db4e859fa96f9f Mon Sep 17 00:00:00 2001 From: jude Date: Fri, 13 May 2022 14:11:39 +0100 Subject: [PATCH] added message content intent --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3ab72b2..0ed6be5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -419,13 +419,15 @@ async fn main() -> Result<(), Box> { let mut client = Client::builder( &token, if dm_enabled { - GatewayIntents::GUILD_MESSAGES + GatewayIntents::MESSAGE_CONTENT + | GatewayIntents::GUILD_MESSAGES | GatewayIntents::GUILDS | GatewayIntents::GUILD_MESSAGE_REACTIONS | GatewayIntents::DIRECT_MESSAGES | GatewayIntents::DIRECT_MESSAGE_REACTIONS } else { - GatewayIntents::GUILD_MESSAGES + GatewayIntents::MESSAGE_CONTENT + | GatewayIntents::GUILD_MESSAGES | GatewayIntents::GUILDS | GatewayIntents::GUILD_MESSAGE_REACTIONS },