diff --git a/backend/src/plugins/Utility.ts b/backend/src/plugins/Utility.ts index ce89b98e..c083b988 100644 --- a/backend/src/plugins/Utility.ts +++ b/backend/src/plugins/Utility.ts @@ -879,6 +879,7 @@ export class UtilityPlugin extends ZeppelinPlugin { ${roles.length > 0 ? "Roles: " + roles.map(r => r.name).join(", ") : ""} `) + embedPadding, }); + const voiceChannel = member.voiceState.channelID ? this.guild.channels.get(member.voiceState.channelID) : null; if (voiceChannel || member.voiceState.mute || member.voiceState.deaf) { embed.fields.push({ @@ -896,6 +897,7 @@ export class UtilityPlugin extends ZeppelinPlugin { name: "!! USER IS NOT ON THE SERVER !!", value: embedPadding, }); + } const cases = (await this.cases.getByUserId(user.id)).filter(c => !c.is_hidden); @@ -918,6 +920,7 @@ export class UtilityPlugin extends ZeppelinPlugin { `), }); } + msg.channel.createMessage({ embed }); }