Fix fmt & clippy
This commit is contained in:
@@ -13,11 +13,11 @@ impl EventHandler for Handler {
|
|||||||
// private channels, and more.
|
// private channels, and more.
|
||||||
//
|
//
|
||||||
// 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