Disable Guild Check

This commit is contained in:
2023-03-10 00:29:55 -05:00
parent c25dc5cce8
commit 12c63fd6c1

View File

@@ -15,9 +15,9 @@ impl EventHandler for Handler {
// In this case, just print what the current user's username is.
async fn ready(&self, ctx: Context, ready: Ready) {
println!("{} is connected!", ready.user.name);
for g_id in ctx.cache.guilds() {
let g = ctx.cache.guild(g_id).expect("Unable to fetch guild");
println!("Initializing {}...", g.name);
}
// for g_id in ctx.cache.guilds() {
// let g = ctx.cache.guild(g_id).expect("Unable to fetch guild");
// println!("Initializing {}...", g.name);
// }
}
}