feat: add support for gif stickers (2)

This commit is contained in:
Elysia 2023-02-22 23:31:35 +07:00
parent 683bb28bb2
commit 8f21115035

View File

@ -219,7 +219,9 @@ exports.Endpoints = {
makeImageUrl(`${root}/discovery-splashes/${guildId}/${hash}`, { size, format }), makeImageUrl(`${root}/discovery-splashes/${guildId}/${hash}`, { size, format }),
TeamIcon: (teamId, hash, options) => makeImageUrl(`${root}/team-icons/${teamId}/${hash}`, options), TeamIcon: (teamId, hash, options) => makeImageUrl(`${root}/team-icons/${teamId}/${hash}`, options),
Sticker: (stickerId, stickerFormat) => Sticker: (stickerId, stickerFormat) =>
`${root}/stickers/${stickerId}.${stickerFormat === 'LOTTIE' ? 'json' : 'png'}`, `${root}/stickers/${stickerId}.${
stickerFormat === 'LOTTIE' ? 'json' : stickerFormat === 'GIF' ? 'gif' : 'png'
}`,
RoleIcon: (roleId, hash, format = 'webp', size) => RoleIcon: (roleId, hash, format = 'webp', size) =>
makeImageUrl(`${root}/role-icons/${roleId}/${hash}`, { size, format }), makeImageUrl(`${root}/role-icons/${roleId}/${hash}`, { size, format }),
guildScheduledEventCover: (scheduledEventId, coverHash, format, size) => guildScheduledEventCover: (scheduledEventId, coverHash, format, size) =>