feat(main): adding the GatewayIntents

This commit is contained in:
Raphael 2026-02-13 15:20:26 +01:00 committed by Raphaël
parent 29c146b359
commit e21f107c3d

View file

@ -31,7 +31,19 @@ async fn main() {
.expect("❌ | Failed to run migrations");
println!("✅ | Migrations applied\n");
let intents: GatewayIntents = GatewayIntents::default();
let intents: GatewayIntents = GatewayIntents::AUTO_MODERATION_CONFIGURATION
| GatewayIntents::AUTO_MODERATION_EXECUTION
| GatewayIntents::DIRECT_MESSAGE_REACTIONS
| GatewayIntents::DIRECT_MESSAGES
| GatewayIntents::GUILD_INVITES
| GatewayIntents::GUILD_MEMBERS
| GatewayIntents::GUILD_MESSAGE_REACTIONS
| GatewayIntents::GUILD_MESSAGE_TYPING
| GatewayIntents::GUILD_MESSAGES
| GatewayIntents::GUILD_MODERATION
| GatewayIntents::GUILD_VOICE_STATES
| GatewayIntents::GUILDS
| GatewayIntents::MESSAGE_CONTENT;
let bot: Bot = Bot {
commands: commands::import(),