3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-18 23:09:59 +00:00

Merge pull request #276 from metal0/invite-types

DJS Temporary fix for school hub invites
This commit is contained in:
Miikka 2021-09-04 19:08:08 +03:00 committed by GitHub
commit de3b4bbbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ export async function getInviteInfoEmbed(
`), `),
inline: true, inline: true,
}); });
if (invite.channel) {
const channelName = const channelName =
invite.channel.type === ChannelTypeStrings.VOICE ? `🔉 ${invite.channel.name}` : `#${invite.channel.name}`; invite.channel.type === ChannelTypeStrings.VOICE ? `🔉 ${invite.channel.name}` : `#${invite.channel.name}`;
@ -91,6 +91,7 @@ export async function getInviteInfoEmbed(
value: channelInfo, value: channelInfo,
inline: true, inline: true,
}); });
}
if (invite.inviter) { if (invite.inviter) {
embed.fields.push({ embed.fields.push({