From a5486fc5a1ace4a1e74c6e4ddd5dcf61c409a386 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 26 Jun 2022 09:50:39 -0400 Subject: main: Add all gateway intents to FrameworkBuilder --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') 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; 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 { /* -- cgit v1.2.3