diff --git a/core/src/main/kotlin/entity/User.kt b/core/src/main/kotlin/entity/User.kt index 2ce5ca0a0fa..4fe8405cbd8 100644 --- a/core/src/main/kotlin/entity/User.kt +++ b/core/src/main/kotlin/entity/User.kt @@ -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}" } /**