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 now
3 Replies
Favna
Favna2w ago
No animated=true has been a thing for a very long time I'm pretty sure
Seren_Modz 21
Seren_Modz 212w ago
providing id.gif has also been possible for quite some time
Ravelt
RaveltOP2w ago
Interesting This was definitely working before though Maybe before not including the extension defaulted to animated and they changed that
Want results from more Discord servers?
Add your server