Skip to content

Commit 7450c60

Browse files
committed
Request all intents when connecting to discord
1 parent 42c6a5a commit 7450c60

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/main.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,13 @@ async fn app() -> Result<(), Error> {
216216

217217
cmds.add("?help", Command::help());
218218

219-
let mut client = Client::builder(
220-
&config.discord_token,
221-
GatewayIntents::default().union(GatewayIntents::MESSAGE_CONTENT),
222-
)
223-
.event_handler(Events {
224-
http: Arc::new(HttpClient::new()),
225-
db: pool.clone(),
226-
cmds: Arc::new(cmds),
227-
})
228-
.await?;
219+
let mut client = Client::builder(&config.discord_token, GatewayIntents::all())
220+
.event_handler(Events {
221+
http: Arc::new(HttpClient::new()),
222+
db: pool.clone(),
223+
cmds: Arc::new(cmds),
224+
})
225+
.await?;
229226

230227
client.start().await?;
231228

0 commit comments

Comments
 (0)