Fixed errors and performance issue

This commit is contained in:
2025-12-29 12:53:57 +05:30
parent d216879a71
commit ce14f924e8

View File

@@ -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(_) => {