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:
parent
6c3b1e0c56
commit
52bec08cc6
|
@ -194,7 +194,7 @@ func (g Guild) DiscoverySplashURLWithType(t ImageType) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
return "https://cdn.discordapp.com/splashes/" +
|
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
|
// 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/" +
|
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
|
// https://discord.com/developers/docs/topics/permissions#role-object
|
||||||
|
|
Loading…
Reference in a new issue