- fix guild splash on invite

- add banner/splash support for guild
This commit is contained in:
derpystuff 2023-04-17 20:16:05 +02:00
parent d558a00088
commit 69e42d14b1
2 changed files with 11 additions and 1 deletions

View file

@ -66,6 +66,16 @@ module.exports = {
inline: true
})
if(g.banner){
guildCard.image = {
url: `https://cdn.discordapp.com/banners/${g.id}/${g.banner}.png?size=4096`
}
} else if(g.splash){
guildCard.image = {
url: `https://cdn.discordapp.com/splashes/${g.id}/${g.banner}.png?size=4096`
}
}
// Guild Features
if(g.features.length >= 1){

View file

@ -48,7 +48,7 @@ module.exports = {
if(g.splash){
inviteCard.image = {
url: `https://cdn.discordapp.com/splashes/519734247519420438/${g.splash}.png?size=4096`
url: `https://cdn.discordapp.com/splashes/${g.id}/${g.splash}.png?size=4096`
}
}