Fix bot crashing when viewing an audit with no reason
This commit is contained in:
parent
061b375b34
commit
508f8228b1
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ export default class Audits extends Command {
|
||||||
|
|
||||||
const publicEmbed = new PublicEmbed(context, `Audit ${audit.AuditId.toUpperCase()}`, "");
|
const publicEmbed = new PublicEmbed(context, `Audit ${audit.AuditId.toUpperCase()}`, "");
|
||||||
|
|
||||||
publicEmbed.addField("Reason", audit.Reason, true);
|
publicEmbed.addField("Reason", audit.Reason || "*none*", true);
|
||||||
publicEmbed.addField("Type", AuditTools.TypeToFriendlyText(audit.AuditType), true);
|
publicEmbed.addField("Type", AuditTools.TypeToFriendlyText(audit.AuditType), true);
|
||||||
publicEmbed.addField("Moderator", `<@${audit.ModeratorId}>`, true);
|
publicEmbed.addField("Moderator", `<@${audit.ModeratorId}>`, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue