diff options
author | Cara Salter <cara@devcara.com> | 2022-06-26 09:50:39 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-26 09:55:30 -0400 |
commit | a5486fc5a1ace4a1e74c6e4ddd5dcf61c409a386 (patch) | |
tree | d0b6287ce2c7d420c0f676834a88f5dca276bf7b /src | |
parent | 1a50ac194851ca3b1fd5811628ace82565de5bb1 (diff) | |
download | glitch-ng-a5486fc5a1ace4a1e74c6e4ddd5dcf61c409a386.tar.gz glitch-ng-a5486fc5a1ace4a1e74c6e4ddd5dcf61c409a386.zip |
main: Add all gateway intents to FrameworkBuilder
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
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 { /* |