utility.lookinvite: fix missing name and add member count

forgot to add with_counts to my test url so didnt realize fields were
there for those
This commit is contained in:
Cynthia Foxwell 2023-05-29 20:16:36 -06:00
parent 66c59292f5
commit e2bcdb6adc

View file

@ -514,7 +514,17 @@ lookupinvite.callback = async function (msg, line) {
embed.fields.push( embed.fields.push(
{ {
name: "Channel", name: "Channel",
value: `**${invite.channel.name}** (${invite.channel.id})`, value: `**${
invite.channel.name ??
invite.channel.recipients
.map((member) => member.username)
.join(", ")
}** (${invite.channel.id})`,
inline: true,
},
{
name: "Member Count",
value: `${STATUS_ICONS.offline}${invite.approximate_member_count} members`,
inline: true, inline: true,
}, },
expires expires