diff --git a/src/plugins/fakeNitro/index.ts b/src/plugins/fakeNitro/index.ts index 95777188..6107df00 100644 --- a/src/plugins/fakeNitro/index.ts +++ b/src/plugins/fakeNitro/index.ts @@ -787,7 +787,14 @@ export default definePlugin({ if (sticker.available !== false && (canUseStickers || sticker.guild_id === guildId)) break stickerBypass; - const link = this.getStickerLink(sticker.id); + // [12/12/2023] + // Work around an annoying bug where getStickerLink will return StickerType.GIF, + // but will give us a normal non animated png for no reason + // TODO: Remove this workaround when it's not needed anymore + let link = this.getStickerLink(sticker.id); + if (sticker.format_type === StickerType.GIF && link.includes(".png")) { + link = link.replace(".png", ".gif"); + } if (sticker.format_type === StickerType.APNG) { this.sendAnimatedSticker(link, sticker.id, channelId); return { cancel: true };