mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 06:51:51 +00:00
check if "channel" exists
This commit is contained in:
parent
7f2731262d
commit
2821252a5a
1 changed files with 19 additions and 18 deletions
|
@ -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({
|
||||||
|
|
Loading…
Add table
Reference in a new issue