aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index de322ae..2a3a4fd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,6 +14,7 @@ use sqlx::{postgres::PgPoolOptions, PgPool};
use tracing::{info, instrument};
use poise::serenity_prelude as serenity;
+use ::serenity::model::gateway::GatewayIntents;
type Error = Box<dyn std::error::Error + Send + Sync>;
type Context<'a> = poise::Context<'a, Data, Error>;
@@ -141,6 +142,7 @@ async fn main() {
.client_settings(|c| {
c.intents(serenity::GatewayIntents::all())
})
+ .intents(GatewayIntents::all())
.user_data_setup(move |_ctx, _ready, _framework| {
Box::pin(async move {
/*