add discovery splashes to list of possible guild media

This commit is contained in:
bignutty 2025-01-17 21:24:40 +01:00
parent 6fb60a5542
commit ae0304502a

View file

@ -77,14 +77,13 @@ module.exports = {
inline: false inline: false
}) })
if(g.banner){ if((g.banner || g.splash || g.discoverySplash) != undefined){
guildCard.image = { guildCard.image = {
url: g.bannerUrl + "?size=4096" url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096"
}
} else if(g.splash){
guildCard.image = {
url: g.splashUrl + "?size=4096"
} }
// TODO: report
if(g.discoverySplashUrl) guildCard.image.url = guildCard.image.url.replace("/splashes/","/discovery-splashes/");
} }
// Guild Features // Guild Features