mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 11:29:12 +00:00
reduce intents to just GUILD_MESSAGES
This commit is contained in:
parent
2b1bb916cf
commit
a282f32c29
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ use serenity::{
|
|||
},
|
||||
},
|
||||
prelude::*,
|
||||
client::bridge::gateway::GatewayIntents
|
||||
};
|
||||
|
||||
|
||||
|
@ -78,7 +79,9 @@ async fn main() {
|
|||
let ui_hostname = url::Url::parse(&ui_public_uri).unwrap().host_str().unwrap().to_string();
|
||||
|
||||
let mut client =
|
||||
Client::builder(&token).application_id(client_id).event_handler(Handler {
|
||||
Client::builder(&token).application_id(client_id)
|
||||
.intents(GatewayIntents::GUILD_MESSAGES)
|
||||
.event_handler(Handler {
|
||||
ui_public_uri,
|
||||
ui_hostname,
|
||||
}).await.expect("Err creating client");
|
||||
|
|
Loading…
Add table
Reference in a new issue