|
|
|
@ -370,7 +370,9 @@ pub async fn leaderboard(ctx: &PrefixContext<'_>) -> Result<(), Error> {
|
|
|
|
|
let mut leaderboard_html = String::from("<table id=\"leaderboard\">");
|
|
|
|
|
for (i, (id, count)) in top_submitters[0..LENGTH].iter().enumerate() {
|
|
|
|
|
let place = i + 1;
|
|
|
|
|
let user = serenity::UserId(id.parse::<u64>().unwrap()).to_user(&ctx.discord.http).await?;
|
|
|
|
|
let user = serenity::UserId(id.parse::<u64>().unwrap())
|
|
|
|
|
.to_user(&ctx.discord.http)
|
|
|
|
|
.await?;
|
|
|
|
|
let avatar = get_avatar(&user);
|
|
|
|
|
let profile = format!("https://discord.com/users/{id}");
|
|
|
|
|
let name = &user.name;
|
|
|
|
|