feat: backport animated emojis support (#2217)

Commit: 84e4dd6a99
This commit is contained in:
SpaceEEC
2018-01-04 01:16:50 +01:00
committed by Crawl
parent c79823002b
commit 659e89e8cd
3 changed files with 19 additions and 14 deletions

View File

@@ -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`,