From ce14f924e80fc2fccdcd70e62d040c89470d3419 Mon Sep 17 00:00:00 2001 From: Kishor Date: Mon, 29 Dec 2025 12:53:57 +0530 Subject: [PATCH] Fixed errors and performance issue --- src/commands/level.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/level.rs b/src/commands/level.rs index 2917247..607ec49 100644 --- a/src/commands/level.rs +++ b/src/commands/level.rs @@ -571,7 +571,7 @@ pub async fn leaderboard(ctx: Context<'_>) -> Result<(), Error> { // Fallback to HTTP match ctx.http().get_user(user_id).await { Ok(user) => { - user_name = user.name; + user_name = user.name.clone(); avatar_url = user.face(); } Err(_) => {