Description
If you upload a WebP file as an animated emoji, attempting to download from CDN with the .gif extension raises 415 Unsupported Media Type, despite apparently being supported as per docs https://discord.com/developers/docs/reference#image-data - this does not occur the other way round, nor with other extensions.
Steps to Reproduce
- Upload a WebP to a guild as an emoji - this is the example file I'm using.
- Attempt to access it through
https://cdn.discordapp.com/emojis/<emoji_id>.webp - as expected, this works fine/
- Attempt to access it through
https://cdn.discordapp.com/emojis/<emoji_id>.gif
Expected Behavior
It should return the emoji in .gif format, as per the CDN Endpoints section.
Current Behavior
It raises Error 415 / Unsupported Media Type - If this is intentional, this should be documented. It's somewhat of a pain because our library assumes all animated emojis can use the .gif extension, and there's no attribute denoting otherwise.
Screenshots/Videos
No response
Client and System Information
stable 400637 (5e95670)
Discord e447dec (Web)
Chromium 136
Description
If you upload a WebP file as an animated emoji, attempting to download from CDN with the
.gifextension raises415 Unsupported Media Type, despite apparently being supported as per docs https://discord.com/developers/docs/reference#image-data - this does not occur the other way round, nor with other extensions.Steps to Reproduce
https://cdn.discordapp.com/emojis/<emoji_id>.webp- as expected, this works fine/https://cdn.discordapp.com/emojis/<emoji_id>.gifExpected Behavior
It should return the emoji in
.gifformat, as per the CDN Endpoints section.Current Behavior
It raises Error 415 / Unsupported Media Type - If this is intentional, this should be documented. It's somewhat of a pain because our library assumes all animated emojis can use the
.gifextension, and there's no attribute denoting otherwise.Screenshots/Videos
No response
Client and System Information
stable 400637 (5e95670)
Discord e447dec (Web)
Chromium 136