Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/kotlin/entity/User.kt
Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@ open class User(
val hash = data.avatar ?: return defaultUrl
if (!isAnimated && format == Image.Format.GIF) return null

return "https://cdn.discordapp.com/avatars/${data.id}/$hash.${format.extension}"
return "https://cdn.discordapp.com/avatars/${data.id.value}/$hash.${format.extension}"
}

/**
@@ -138,7 +138,7 @@ open class User(
val hash = data.avatar ?: return defaultUrl
if (!isAnimated && format == Image.Format.GIF) return null

return "https://cdn.discordapp.com/avatars/${data.id}/$hash.${format.extension}?size=${size.maxRes}"
return "https://cdn.discordapp.com/avatars/${data.id.value}/$hash.${format.extension}?size=${size.maxRes}"
}

/**

0 comments on commit 8d58c4c

Please sign in to comment.