Skip to content

Commit 857eb77

Browse files
committed
Add intents
1 parent 45d394e commit 857eb77

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/bot.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ impl WaffleBot {
5252
.options(options)
5353
.build();
5454

55-
let mut client = serenity::Client::builder(self.token.clone(), GatewayIntents::empty())
56-
.framework(framework)
57-
.await?;
55+
let mut client = serenity::Client::builder(
56+
self.token.clone(),
57+
GatewayIntents::GUILD_MESSAGES | GatewayIntents::MESSAGE_CONTENT,
58+
)
59+
.framework(framework)
60+
.await?;
5861

5962
client.start().await
6063
}
6164
}
6265

63-
#[allow(unused)]
6466
pub async fn check_is_oracle(ctx: Context<'_>) -> Result<bool, Error> {
6567
if let Ok(member) = ctx.guild_id().unwrap().member(ctx, ctx.author().id).await {
6668
if let Some(guild_id) = ctx.guild_id() {

0 commit comments

Comments
 (0)