Skip to content

Commit

Permalink
Fix guild icon generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tracer1337 committed Mar 7, 2021
1 parent 7831e1b commit 736e768
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ function formatGuild(guild: API.Guild) {
guild.memberCount = makeReduxAPIState<API.MemberCount>(-1)

if (guild.icon) {
guild.icon = `${DISCORD_CDN_BASE_URL}/icons/${guild.id}/${guild.icon}.png`
guild.icon_animated = `${DISCORD_CDN_BASE_URL}/icons/${guild.id}/${guild.icon}`
const iconId = guild.icon
guild.icon = `${DISCORD_CDN_BASE_URL}/icons/${guild.id}/${iconId}.png`
guild.icon_animated = `${DISCORD_CDN_BASE_URL}/icons/${guild.id}/${iconId}`
}
}

Expand Down

0 comments on commit 736e768

Please sign in to comment.