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:
ITOH
2021-01-21 19:05:32 +01:00
committed by GitHub
parent 3c93237976
commit 61f2e1592b
+4
View File
@@ -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);
}