From 36e320ab1b14d60d55d9dfc467da5a1b257ffad5 Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 11 Nov 2024 11:53:25 +0200 Subject: [PATCH] Add author id to bulk delete logs --- src/client/components/observers/GuildLogging.ts | 2 +- src/client/components/wrappers/MessageWrapper.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/components/observers/GuildLogging.ts b/src/client/components/observers/GuildLogging.ts index 3d1784c..72e4b70 100644 --- a/src/client/components/observers/GuildLogging.ts +++ b/src/client/components/observers/GuildLogging.ts @@ -565,7 +565,7 @@ class GuildLogger extends Observer const value = stripIndents`${content ? content.substring(0, cutOff) : wrapper.format('BULK_DELETE_NO_CONTENT')}`; // ${message.attachments.size > 0 ? `__(Attachments: ${attStr})__` : '' } fields.push({ - name: `${Util.escapeMarkdown(author.tag)} @ ${moment.utc(message.createdAt).format('D/M/YYYY H:m:s')} UTC (MSG ID: ${id})`, + name: `${Util.escapeMarkdown(author.tag)} (${author.id}) (MSG ID: ${id})`, value }); diff --git a/src/client/components/wrappers/MessageWrapper.ts b/src/client/components/wrappers/MessageWrapper.ts index f714cbf..4183875 100644 --- a/src/client/components/wrappers/MessageWrapper.ts +++ b/src/client/components/wrappers/MessageWrapper.ts @@ -45,10 +45,10 @@ class MessageWrapper this.#caller = null; } - // get message () - // { - // return this.#message; - // } + get message () + { + return this.#message; + } get id () {