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

djs typings: Attachment & Util

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
metal 2023-03-11 14:41:04 +00:00 committed by GitHub
parent aad4ad82a5
commit 010451c7e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 49 additions and 44 deletions

View file

@ -1,4 +1,4 @@
import { MessageEditOptions, MessageOptions, Util } from "discord.js";
import { escapeCodeBlock, MessageEditOptions, MessageOptions } 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 = Util.escapeCodeBlock(note.body.trim());
let noteBody = escapeCodeBlock(note.body.trim());
if (noteBody === "") {
noteBody = emptyEmbedValue;
}