1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-31 20:14:21 +00:00

Discord: fix discovery splash url not getting properly calculated

This commit is contained in:
mavolin 2020-05-25 02:22:39 +02:00 committed by diamondburned
parent 6c3b1e0c56
commit 52bec08cc6

View file

@ -194,7 +194,7 @@ func (g Guild) DiscoverySplashURLWithType(t ImageType) string {
}
return "https://cdn.discordapp.com/splashes/" +
g.ID.String() + "/" + t.format(g.Splash)
g.ID.String() + "/" + t.format(g.DiscoverySplash)
}
// https://discord.com/developers/docs/resources/guild#guild-preview-object
@ -279,7 +279,7 @@ func (g GuildPreview) DiscoverySplashURLWithType(t ImageType) string {
}
return "https://cdn.discordapp.com/splashes/" +
g.ID.String() + "/" + t.format(g.Splash)
g.ID.String() + "/" + t.format(g.DiscoverySplash)
}
// https://discord.com/developers/docs/topics/permissions#role-object