We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e80f6e9 commit 96ff048Copy full SHA for 96ff048
src/providers/discord.js
@@ -14,7 +14,7 @@ export default (options) => {
14
const defaultAvatarNumber = parseInt(profile.discriminator) % 5
15
profile.image_url = `https://cdn.discordapp.com/embed/avatars/${defaultAvatarNumber}.png`
16
} else {
17
- const format = profile.premium_type === 1 || profile.premium_type === 2 ? 'gif' : 'png'
+ const format = profile.avatar.startsWith('a_') ? 'gif' : 'png'
18
profile.image_url = `https://cdn.discordapp.com/avatars/${profile.id}/${profile.avatar}.${format}`
19
}
20
return {
0 commit comments