mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-15 19:08:20 +00:00
feat: backport animated emojis support (#2217)
Commit: https://github.com/hydrabolt/discord.js/commit/84e4dd6a998294e8a9a50c885006c1a908ba09ba
This commit is contained in:
@@ -202,7 +202,7 @@ const Endpoints = exports.Endpoints = {
|
||||
Member: m => exports.Endpoints.Guild(m.guild).Member(m),
|
||||
CDN(root) {
|
||||
return {
|
||||
Emoji: emojiID => `${root}/emojis/${emojiID}.png`,
|
||||
Emoji: (emojiID, format = 'png') => `${root}/emojis/${emojiID}.${format}`,
|
||||
Asset: name => `${root}/assets/${name}`,
|
||||
Avatar: (userID, hash) => `${root}/avatars/${userID}/${hash}.${hash.startsWith('a_') ? 'gif' : 'png'}?size=2048`,
|
||||
Icon: (guildID, hash) => `${root}/icons/${guildID}/${hash}.jpg`,
|
||||
|
||||
Reference in New Issue
Block a user