From b6912908d49fb7fff2a43a4043a162886bbb07c1 Mon Sep 17 00:00:00 2001 From: xanners Date: Mon, 16 Mar 2026 13:20:14 -0500 Subject: [PATCH 1/2] fix: Animate avatars/icons that's using the `.webp` file format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As you may of known, WebP can also be animated and provides some advantages, like having a smaller file sizes over GIF. Though, the point is that WebP can be animated, and so—it should have the same effect as normal GIFs - it having the loop animation than it just being static. Signed-off-by: xanners --- src/classes/File.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/File.ts b/src/classes/File.ts index cf1e25d2..02c352d1 100644 --- a/src/classes/File.ts +++ b/src/classes/File.ts @@ -117,7 +117,7 @@ export class File { if (!autumn?.enabled) return; let query = ""; - if (forceAnimation && this.contentType === "image/gif") { + if (forceAnimation && (this.contentType === "image/gif" || this.contentType === "image/webp")) { query = "/original"; } From 0b6cde2a56c884c39cd644a0ef12b6e3ed3b2307 Mon Sep 17 00:00:00 2001 From: Jacob Schlecht Date: Sun, 27 Sep 2026 20:35:20 -0600 Subject: [PATCH 2/2] fix: Formatting Signed-off-by: Jacob Schlecht --- src/classes/File.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/classes/File.ts b/src/classes/File.ts index c87997df..d9843457 100644 --- a/src/classes/File.ts +++ b/src/classes/File.ts @@ -126,7 +126,10 @@ export class File { if (!autumn?.enabled) return; let query = ""; - if (forceAnimation && (this.contentType === "image/gif" || this.contentType === "image/webp")) { + if ( + forceAnimation && + (this.contentType === "image/gif" || this.contentType === "image/webp") + ) { query = "/original"; }