Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
metal 2022-05-11 14:35:05 +00:00 committed by GitHub
parent 8445c37f64
commit 19235306f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
import { MessageEditOptions, MessageOptions } from "discord.js";
import { MessageEditOptions, MessageOptions, Util } from "discord.js";
import { GuildPluginData } from "knub";
import moment from "moment-timezone";
import { CaseTypes } from "../../../data/CaseTypes";
@ -67,7 +67,7 @@ export async function getCaseEmbed(
if (theCase.notes.length) {
for (const note of theCase.notes) {
const noteDate = moment.utc(note.created_at);
let noteBody = note.body.trim();
let noteBody = Util.escapeCodeBlock(note.body.trim());
if (noteBody === "") {
noteBody = emptyEmbedValue;
}