mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix(controllers): cache updated message on MESSAGE_UPDATE (#429)
* fix(controllers): cache message on update event * forgot to paste that in
This commit is contained in:
@@ -102,5 +102,9 @@ export async function handleInternalMessageUpdate(data: DiscordPayload) {
|
||||
return;
|
||||
}
|
||||
|
||||
const message = await structures.createMessage(payload);
|
||||
|
||||
await cacheHandlers.set("messages", payload.id, message);
|
||||
|
||||
eventHandlers.messageUpdate?.(cachedMessage, oldMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user