From 46b001548dd00b71b8e609bc1bbc8a1ec5a408c0 Mon Sep 17 00:00:00 2001 From: mavolin <48887425+mavolin@users.noreply.github.com> Date: Sun, 24 May 2020 17:17:01 +0200 Subject: [PATCH] Discord: fix wrong hash for discovery splash url --- discord/guild.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/discord/guild.go b/discord/guild.go index e1b18c0..f50f9d3 100644 --- a/discord/guild.go +++ b/discord/guild.go @@ -178,18 +178,18 @@ func (g Guild) SplashURLWithType(t ImageType) string { g.ID.String() + "/" + t.format(g.Splash) } -// DiscoverySplashURL returns the URL to the guild splash, which is the invite -// page's background. This will always return a link to a PNG file. +// DiscoverySplashURL returns the URL to the guild discovery splash. +// This will always return a link to a PNG file. func (g Guild) DiscoverySplashURL() string { return g.DiscoverySplashURLWithType(PNGImage) } -// DiscoverySplashURLWithType returns the URL to the guild splash, which is the -// invite page's background, using the passed ImageType. +// DiscoverySplashURLWithType returns the URL to the guild discovery splash, +// using the passed ImageType. // // Supported ImageTypes: PNG, JPEG, WebP func (g Guild) DiscoverySplashURLWithType(t ImageType) string { - if g.Splash == "" { + if g.DiscoverySplash == "" { return "" } @@ -263,18 +263,18 @@ func (g GuildPreview) SplashURLWithType(t ImageType) string { g.ID.String() + "/" + t.format(g.Splash) } -// DiscoverySplashURL returns the URL to the guild splash, which is the invite -// page's background. This will always return a link to a PNG file. +// DiscoverySplashURL returns the URL to the guild discovery splash. +// This will always return a link to a PNG file. func (g GuildPreview) DiscoverySplashURL() string { return g.DiscoverySplashURLWithType(PNGImage) } -// DiscoverySplashURLWithType returns the URL to the guild splash, which is the -// invite page's background, using the passed ImageType. +// DiscoverySplashURLWithType returns the URL to the guild discovery splash, +// using the passed ImageType. // // Supported ImageTypes: PNG, JPEG, WebP func (g GuildPreview) DiscoverySplashURLWithType(t ImageType) string { - if g.Splash == "" { + if g.DiscoverySplash == "" { return "" }