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
Generated
+1 -1
View File
@@ -1437,7 +1437,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
[[package]] [[package]]
name = "payphone" name = "payphone"
version = "4.3.2" version = "4.3.4"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "payphone" name = "payphone"
version = "4.3.2" version = "4.3.4"
edition = "2024" edition = "2024"
default-run = "payphone" default-run = "payphone"
+1 -1
View File
@@ -13,7 +13,7 @@ use twilight_model::util::ImageHash;
/// [`String`] - The URL of the user's avatar. /// [`String`] - The URL of the user's avatar.
pub fn get_avatar_url(hash: Option<ImageHash>, user_id: u64, discriminator: u64) -> String { pub fn get_avatar_url(hash: Option<ImageHash>, user_id: u64, discriminator: u64) -> String {
if let Some(hash) = hash { 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 { } else {
format!( format!(
"https://cdn.discordapp.com/embed/avatars/{}.png?size=256", "https://cdn.discordapp.com/embed/avatars/{}.png?size=256",