mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
fix guild media check
This commit is contained in:
parent
19edeaaff2
commit
c19c1a83b4
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue