Make all avatars use PNG instead of WEBP

This commit is contained in:
2025-08-24 13:06:37 -03:00
parent 497d180669
commit fc9bbcc87c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ use twilight_model::util::ImageHash;
/// [`String`] - The URL of the user's avatar.
pub fn get_avatar_url(hash: Option<ImageHash>, user_id: u64, discriminator: u64) -> String {
if let Some(hash) = hash {
format!("https://cdn.discordapp.com/avatars/{user_id}/{hash}.webp?size=256")
format!("https://cdn.discordapp.com/avatars/{user_id}/{hash}.png?size=256")
} else {
format!(
"https://cdn.discordapp.com/embed/avatars/{}.png?size=256",