feat(main): adding the GatewayIntents
This commit is contained in:
parent
29c146b359
commit
e21f107c3d
1 changed files with 13 additions and 1 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue