diff --git a/src/equicordplugins/messageLoggerEnhanced/index.tsx b/src/equicordplugins/messageLoggerEnhanced/index.tsx index d1ba787d..65d2bb31 100644 --- a/src/equicordplugins/messageLoggerEnhanced/index.tsx +++ b/src/equicordplugins/messageLoggerEnhanced/index.tsx @@ -154,7 +154,7 @@ async function messageUpdateHandler(payload: MessageUpdatePayload) { ...(cachedMessage.editHistory ?? []), { content: cachedMessage.content, - timestamp: (new Date()).toISOString() + timestamp: new Date().toISOString() } ] }; diff --git a/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts b/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts index 7f47ff36..13e5a112 100644 --- a/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts +++ b/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts @@ -33,7 +33,7 @@ export function cleanupMessage(message: any, removeDetails: boolean = true): Log ret.guildId = ret.guild_id ?? getGuildIdByChannel(ret.channel_id); ret.embeds = (ret.embeds ?? []).map(cleanupEmbed); 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 ?? []; if (ret.type === 19) { ret.message_reference = message.message_reference || message.messageReference;