Skip to content

WebP files uploaded as Emoji do not support .gif CDN extension #7567

@NeloBlivion

Description

@NeloBlivion

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

  1. Upload a WebP to a guild as an emoji - this is the example file I'm using.
  2. Attempt to access it through https://cdn.discordapp.com/emojis/<emoji_id>.webp - as expected, this works fine/
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions