discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Sticker CDN URL does not open for GIF format

Open aziznatour opened this issue 4 months ago • 2 comments

Description

The following error occurs when opening the CDN URL of a GIF sticker (custom server sticker):

NoSuchKey The specified key does not exist. No such object: discord/stickers/id*.gif

Example URL: https://cdn.discordapp.com/stickers/id*.gif

If it was a PNG Sticker, the URL will work normally: https://cdn.discordapp.com/stickers/id*.png

* I have omitted the actual ID in this report.

Steps to Reproduce

  1. Create a GIF sticker in a Discord server
  2. Grab its ID
  3. Try to open the CDN URL: https://cdn.discordapp.com/stickers/sticker_id_here.gif

Expected Behavior

CDN URL should return the actual image, not an error.

Current Behavior

NoSuchKey error.

Screenshots/Videos

No response

Client and System Information

Latest Firefox and Chrome on Windows 10. Latest Discord client on Android (Image not rendered)

aziznatour avatar Feb 20 '24 17:02 aziznatour

GIF stickers won't follow the same URL scheme as sticker types stored on the CDN. You can find them via: https://media.discordapp.net/stickers/<sticker_id>.gif.

jkcailteux avatar Feb 20 '24 17:02 jkcailteux

GIF stickers won't follow the same URL scheme as sticker types stored on the CDN. You can find them via: https://media.discordapp.net/stickers/<sticker_id>.gif.

Thank you for clarifying this. It is indeed working. Does this affect all GIF-type media, or just stickers?

The docs need to be updated with this information.

aziznatour avatar Feb 20 '24 18:02 aziznatour