We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456244b commit 42c6a5aCopy full SHA for 42c6a5a
src/main.rs
@@ -216,13 +216,16 @@ async fn app() -> Result<(), Error> {
216
217
cmds.add("?help", Command::help());
218
219
- let mut client = Client::builder(&config.discord_token, GatewayIntents::default())
220
- .event_handler(Events {
221
- http: Arc::new(HttpClient::new()),
222
- db: pool.clone(),
223
- cmds: Arc::new(cmds),
224
- })
225
- .await?;
+ let mut client = Client::builder(
+ &config.discord_token,
+ GatewayIntents::default().union(GatewayIntents::MESSAGE_CONTENT),
+ )
+ .event_handler(Events {
+ http: Arc::new(HttpClient::new()),
+ db: pool.clone(),
226
+ cmds: Arc::new(cmds),
227
+ })
228
+ .await?;
229
230
client.start().await?;
231
0 commit comments