Skip to content

Commit b22c435

Browse files
committed
Slightly less buggy message logging
1 parent b933d84 commit b22c435

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

backend/src/plugin/logging/config/messages.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export const messageDeleteEvent = eventConfig(
3333
embeds: [{
3434
title: "Message Deleted",
3535
author: { name: "{{author#tag}}", icon_url: "{{author_avatar}}" },
36-
fields: [
37-
{ name: "Content", value: "{{content}}", }
38-
],
36+
description: "{{content}}",
3937
color: "red",
4038
footer: { text: "Author ID: {{author#id}}" },
4139
}]

backend/src/plugin/logging/logger/messages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ async function handleUpdate(message: Message): Promise<void> {
6565
async () => {
6666
const entry = await getMessageCacheEntry(message.guild!.id, message.channelID, message.id);
6767

68+
if (entry?.content === message.content)
69+
return null;
70+
6871
await upsertMessageCacheEntry(message.guild!.id, message.channelID, message.id, {
6972
authorID: message.author.id,
7073
authorName: message.author.tag,

0 commit comments

Comments
 (0)