utility.guildinfo: fix widget+invite images

This commit is contained in:
Cynthia Foxwell 2024-05-17 20:32:43 -06:00
parent 3c2c18294c
commit 4653231637

View file

@ -2431,16 +2431,18 @@ guildinfo.callback = async function (msg, line) {
const images = [];
if (invite.guild.icon) {
images.push(`[Icon](${embed.thumbnail.url})`);
images.push(
`[Icon](${ICON_BASE}${invite.guild.id}/${invite.guild.icon}.png?size=4096`
);
}
if (invite.guild.splash) {
images.push(
`[Invite Splash](${SPLASH_BASE}${guild.id}/${guild.splash}.png?size=4096)`
`[Invite Splash](${SPLASH_BASE}${invite.guild.id}/${invite.guild.splash}.png?size=4096)`
);
}
if (invite.guild.banner) {
images.push(
`[Banner](${BANNER_BASE}${guild.id}/${guild.banner}.png?size=4096)`
`[Banner](${BANNER_BASE}${invite.guild.id}/${invite.guild.banner}.png?size=4096)`
);
}