update intents

This commit is contained in:
2024-12-12 12:07:27 -05:00
parent 1f0285425c
commit 9c3dc241a1

View File

@@ -42,7 +42,10 @@ async fn main() -> Result<(), Error> {
let token = env::var("DISCORD_BOT_TOKEN")?;
let database_url = env::var("DATABASE_URL")?;
let intents = serenity::GatewayIntents::all();
let intents =
serenity::GatewayIntents::GUILD_MESSAGES
| serenity::GatewayIntents::DIRECT_MESSAGES
| serenity::GatewayIntents::MESSAGE_CONTENT;
let framework = poise::Framework::builder()
.options(poise::FrameworkOptions {