Skip to content

Commit

Permalink
fix: userdata incomplete (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
crnvl committed Oct 21, 2023
1 parent ccb0c93 commit 5fbf552
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xp-bot/src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ pub async fn conform_xpc(
member.userData.avatar = Some(
match ctx
.http
.get_member(guild_id.to_owned(), user_id.to_owned())
.get_user(user_id.to_owned())
.await
.unwrap()
.avatar
Expand All @@ -359,10 +359,10 @@ pub async fn conform_xpc(
member.userData.banner = Some(
match ctx
.http
.get_member(guild_id.to_owned(), user_id.to_owned())
.get_user(user_id.to_owned())
.await
.unwrap()
.avatar
.banner
{
Some(banner) => banner,
None => "".to_string(),
Expand Down

0 comments on commit 5fbf552

Please sign in to comment.