Fixed errors and performance issue
This commit is contained in:
@@ -571,7 +571,7 @@ pub async fn leaderboard(ctx: Context<'_>) -> Result<(), Error> {
|
|||||||
// Fallback to HTTP
|
// Fallback to HTTP
|
||||||
match ctx.http().get_user(user_id).await {
|
match ctx.http().get_user(user_id).await {
|
||||||
Ok(user) => {
|
Ok(user) => {
|
||||||
user_name = user.name;
|
user_name = user.name.clone();
|
||||||
avatar_url = user.face();
|
avatar_url = user.face();
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user