Browse Source

Fix CDN format for sticker

pull/1923/head
quin lynch 4 years ago
parent
commit
057ad644ed
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/Discord.Net.Core/CDN.cs

+ 1
- 2
src/Discord.Net.Core/CDN.cs View File

@@ -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));



Loading…
Cancel
Save