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
1 changed files with 2 additions and 2 deletions

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