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