utility.guildinfo: fix widget+invite images
This commit is contained in:
parent
3c2c18294c
commit
4653231637
1 changed files with 5 additions and 3 deletions
|
@ -2431,16 +2431,18 @@ guildinfo.callback = async function (msg, line) {
|
||||||
|
|
||||||
const images = [];
|
const images = [];
|
||||||
if (invite.guild.icon) {
|
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) {
|
if (invite.guild.splash) {
|
||||||
images.push(
|
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) {
|
if (invite.guild.banner) {
|
||||||
images.push(
|
images.push(
|
||||||
`[Banner](${BANNER_BASE}${guild.id}/${guild.banner}.png?size=4096)`
|
`[Banner](${BANNER_BASE}${invite.guild.id}/${invite.guild.banner}.png?size=4096)`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue