utility.linvite: fix welcome screen

This commit is contained in:
Cynthia Foxwell 2023-04-09 11:24:38 -06:00
parent 86a7e197a8
commit b313bb9f45
1 changed files with 12 additions and 10 deletions

View File

@ -348,18 +348,20 @@ lookupinvite.callback = async function (msg, line) {
value: `${STATUS_ICONS.online}${invite.approximate_presence_count} online\t\t${STATUS_ICONS.offline}${invite.approximate_member_count} members`,
inline: false,
},
invite.welcome_screen && {
invite.guild.welcome_screen && {
name: "Welcome Screen",
value: `"${
invite.welcome_screen.description
}"\n${invite.welcome_screen.welcome_channels.map(
(c) =>
`${
c.emoji_id
? `[:${c.emoji_name}:](${EMOTE_BASE}${c.emoji_id}.webp)`
: c.emoji_name
} ${c.description} \`(${c.channel_id})\``
)}`,
invite.guild.welcome_screen.description
}"\n${invite.guild.welcome_screen.welcome_channels
.map(
(c) =>
`${
c.emoji_id
? `[:${c.emoji_name}:](${EMOTE_BASE}${c.emoji_id}.webp)`
: c.emoji_name
} ${c.description} \`(${c.channel_id})\``
)
.join("\n")}`,
inline: false,
},
{