diff --git a/commands/message/info/guild.js b/commands/message/info/guild.js index d5148ea..1d68544 100644 --- a/commands/message/info/guild.js +++ b/commands/message/info/guild.js @@ -77,7 +77,7 @@ module.exports = { inline: false }) - if((g.banner || g.splash || g.discoverySplash) !== undefined){ + if((g.banner || g.splash || g.discoverySplash) !== null){ guildCard.image = { 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/"); } + console.log((g.banner || g.splash || g.discoverySplash)) + // Guild Features if(g.features.length >= 1){ let featureCards = guildFeaturesField(g) diff --git a/commands/message/info/invite.js b/commands/message/info/invite.js index 5a88715..e47ee3e 100644 --- a/commands/message/info/invite.js +++ b/commands/message/info/invite.js @@ -57,7 +57,7 @@ module.exports = { fields: [], }) - if((g.banner || g.splash || g.discoverySplash) !== undefined){ + if((g.banner || g.splash || g.discoverySplash) !== null){ inviteCard.image = { url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096" }