Fix leaderboard users after mixup during poise port
This commit is contained in:
parent
a45b51b010
commit
37d808eab3
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ 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 = &ctx.msg.author;
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue