diff --git a/src/utils.rs b/src/utils.rs index 4b1bde4..b4e327d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -403,7 +403,7 @@ pub async fn leaderboard(ctx: &Context) -> CommandResult { let profile = format!("https://discord.com/users/{id}"); let name = user.name; let discriminator = user.discriminator; - leaderboard_html.push_str(&format!("{place}\"avatar\"{name}#{discriminator}{count}")); + leaderboard_html.push_str(&format!("{place}\"avatar\"{name}#{:0>4}{count}", discriminator)); } leaderboard_html.push_str(""); let mut file = std::fs::OpenOptions::new()