Cargo Format

This commit is contained in:
2023-03-06 19:17:18 -05:00
parent f14d414aa2
commit 67dcbc77dd
3 changed files with 22 additions and 24 deletions

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);
}
}
}