Change in how discord links emojis?
I have a function on my bot that does emoji stealing. Recently had some users report that stealing an animated emoji only steals the static image now. I used to extract the emoji id and do guild.emojis.create({ attachment:
https://cdn.discordapp.com/emojis/${emoji-id}
, name: emoji-name }); and that worked for all emojis. But it seems discord emoji links are now of the form https://cdn.discordapp.com/emojis/{emoji-id}.webp?size=240&animated=true. Does anyone if this is behavior that was changed recently? Just confused why this broke and if I can assume the extension is always webp now3 Replies
No animated=true has been a thing for a very long time I'm pretty sure
providing
id.gif
has also been possible for quite some timeInteresting
This was definitely working before though
Maybe before not including the extension defaulted to animated and they changed that