Make all avatars use PNG instead of WEBP
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user