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,
invite.channel.name != null && {
name: "Recipients",
value: invite.channel.recipients
.map((member) =>
member.global_name
? `**${member.global_name}** (${formatUsername(member)})`
: `**${formatUsername(member)}**`
)
.join("\n"),
value: invite.channel.recipients.map((member) => member.username).join("\n"),
inline: false,
},
inviter,