mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -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
|
||||
})
|
||||
|
||||
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)
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue