mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Fix?
This commit is contained in:
parent
2fb4fca576
commit
515a873d1b
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ async function messageUpdateHandler(payload: MessageUpdatePayload) {
|
|||
...(cachedMessage.editHistory ?? []),
|
||||
{
|
||||
content: cachedMessage.content,
|
||||
timestamp: (new Date()).toISOString()
|
||||
timestamp: new Date().toISOString()
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue