From cfb2aba5910a857872b40c63d57f23d62d07ff33 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 5 Dec 2022 15:10:41 -0800 Subject: [PATCH] Add case for missing avatars in leaderboard --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 5ed4527..a1994df 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -379,7 +379,7 @@ pub async fn leaderboard(ctx: &Context<'_>) -> Result<(), Error> { let profile = format!("https://discord.com/users/{id}"); let name = &user.name; let discriminator = user.discriminator; - leaderboard_html.push_str(&format!("{place}\"avatar\" {name}#{:0>4}{count}", discriminator)); + leaderboard_html.push_str(&format!("{place} {name}#{:0>4}{count}", discriminator)); } leaderboard_html.push_str(""); let mut file = std::fs::OpenOptions::new()