This commit is contained in:
thororen 2024-05-05 23:03:15 -04:00
parent 2fb4fca576
commit 515a873d1b
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ async function messageUpdateHandler(payload: MessageUpdatePayload) {
...(cachedMessage.editHistory ?? []), ...(cachedMessage.editHistory ?? []),
{ {
content: cachedMessage.content, content: cachedMessage.content,
timestamp: (new Date()).toISOString() timestamp: new Date().toISOString()
} }
] ]
}; };

View file

@ -33,7 +33,7 @@ export function cleanupMessage(message: any, removeDetails: boolean = true): Log
ret.guildId = ret.guild_id ?? getGuildIdByChannel(ret.channel_id); ret.guildId = ret.guild_id ?? getGuildIdByChannel(ret.channel_id);
ret.embeds = (ret.embeds ?? []).map(cleanupEmbed); ret.embeds = (ret.embeds ?? []).map(cleanupEmbed);
ret.deleted = ret.deleted ?? false; ret.deleted = ret.deleted ?? false;
ret.deletedTimestamp = ret.deleted ? (new Date()).toISOString() : undefined; ret.deletedTimestamp = ret.deleted ? new Date().toISOString() : undefined;
ret.editHistory = ret.editHistory ?? []; ret.editHistory = ret.editHistory ?? [];
if (ret.type === 19) { if (ret.type === 19) {
ret.message_reference = message.message_reference || message.messageReference; ret.message_reference = message.message_reference || message.messageReference;