fix guild media check

This commit is contained in:
bignutty 2025-01-30 11:33:14 +01:00
parent 19edeaaff2
commit c19c1a83b4
2 changed files with 4 additions and 2 deletions

View file

@ -77,7 +77,7 @@ module.exports = {
inline: false inline: false
}) })
if((g.banner || g.splash || g.discoverySplash) !== undefined){ if((g.banner || g.splash || g.discoverySplash) !== null){
guildCard.image = { guildCard.image = {
url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096" url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096"
} }
@ -86,6 +86,8 @@ module.exports = {
if(g.discoverySplashUrl) guildCard.image.url = guildCard.image.url.replace("/splashes/","/discovery-splashes/"); if(g.discoverySplashUrl) guildCard.image.url = guildCard.image.url.replace("/splashes/","/discovery-splashes/");
} }
console.log((g.banner || g.splash || g.discoverySplash))
// Guild Features // Guild Features
if(g.features.length >= 1){ if(g.features.length >= 1){
let featureCards = guildFeaturesField(g) let featureCards = guildFeaturesField(g)

View file

@ -57,7 +57,7 @@ module.exports = {
fields: [], fields: [],
}) })
if((g.banner || g.splash || g.discoverySplash) !== undefined){ if((g.banner || g.splash || g.discoverySplash) !== null){
inviteCard.image = { inviteCard.image = {
url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096" url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096"
} }