utility.lookupinvite: add recipients field if gdm has name
This commit is contained in:
parent
778f5aeab1
commit
7a89753875
1 changed files with 25 additions and 16 deletions
|
@ -565,6 +565,7 @@ lookupinvite.callback = async function (msg, line) {
|
|||
} else if (invite.type == 1) {
|
||||
embed.title += " (Group DM)";
|
||||
embed.fields.push(
|
||||
...[
|
||||
{
|
||||
name: "Channel",
|
||||
value: `**${
|
||||
|
@ -580,8 +581,16 @@ lookupinvite.callback = async function (msg, line) {
|
|||
value: `${STATUS_ICONS.offline}${invite.approximate_member_count} members`,
|
||||
inline: true,
|
||||
},
|
||||
invite.channel.name == null && {
|
||||
name: "Recipients",
|
||||
value: invite.channel.recipients
|
||||
.map((member) => member.username)
|
||||
.join(", "),
|
||||
inline: false,
|
||||
},
|
||||
expires,
|
||||
inviter
|
||||
inviter,
|
||||
].filter((x) => !!x)
|
||||
);
|
||||
|
||||
const groupIcon = invite.channel.icon
|
||||
|
|
Loading…
Reference in a new issue