utility.linvite: fix welcome screen
This commit is contained in:
parent
86a7e197a8
commit
b313bb9f45
1 changed files with 12 additions and 10 deletions
|
@ -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`,
|
value: `${STATUS_ICONS.online}${invite.approximate_presence_count} online\t\t${STATUS_ICONS.offline}${invite.approximate_member_count} members`,
|
||||||
inline: false,
|
inline: false,
|
||||||
},
|
},
|
||||||
invite.welcome_screen && {
|
invite.guild.welcome_screen && {
|
||||||
name: "Welcome Screen",
|
name: "Welcome Screen",
|
||||||
value: `"${
|
value: `"${
|
||||||
invite.welcome_screen.description
|
invite.guild.welcome_screen.description
|
||||||
}"\n${invite.welcome_screen.welcome_channels.map(
|
}"\n${invite.guild.welcome_screen.welcome_channels
|
||||||
|
.map(
|
||||||
(c) =>
|
(c) =>
|
||||||
`${
|
`${
|
||||||
c.emoji_id
|
c.emoji_id
|
||||||
? `[:${c.emoji_name}:](${EMOTE_BASE}${c.emoji_id}.webp)`
|
? `[:${c.emoji_name}:](${EMOTE_BASE}${c.emoji_id}.webp)`
|
||||||
: c.emoji_name
|
: c.emoji_name
|
||||||
} ${c.description} \`(${c.channel_id})\``
|
} ${c.description} \`(${c.channel_id})\``
|
||||||
)}`,
|
)
|
||||||
|
.join("\n")}`,
|
||||||
inline: false,
|
inline: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue