From 057ad644edd79dd8d3e3b6d347a256c339af9b99 Mon Sep 17 00:00:00 2001 From: quin lynch Date: Mon, 20 Sep 2021 03:45:07 -0300 Subject: [PATCH] Fix CDN format for sticker --- src/Discord.Net.Core/CDN.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Discord.Net.Core/CDN.cs b/src/Discord.Net.Core/CDN.cs index 1e8fd624d..a744c93fe 100644 --- a/src/Discord.Net.Core/CDN.cs +++ b/src/Discord.Net.Core/CDN.cs @@ -194,11 +194,10 @@ namespace Discord { case StickerFormatType.None: case StickerFormatType.Png: + case StickerFormatType.Apng: // In the case of the Sticker endpoint, the sticker will be available as PNG if its format_type is PNG or APNG, and as Lottie if its format_type is LOTTIE. return "png"; case StickerFormatType.Lottie: return "lottie"; - case StickerFormatType.Apng: - return "apng"; default: throw new ArgumentException(nameof(format));