lookupinvite: fix gdm recipients

This commit is contained in:
Cynthia Foxwell 2024-08-08 14:48:42 -06:00
parent adf80c3f1a
commit f0d36959c9

View file

@ -185,13 +185,7 @@ lookupinvite.callback = async function (msg, line) {
expires, expires,
invite.channel.name != null && { invite.channel.name != null && {
name: "Recipients", name: "Recipients",
value: invite.channel.recipients value: invite.channel.recipients.map((member) => member.username).join("\n"),
.map((member) =>
member.global_name
? `**${member.global_name}** (${formatUsername(member)})`
: `**${formatUsername(member)}**`
)
.join("\n"),
inline: false, inline: false,
}, },
inviter, inviter,