From 2e12d71f0a5e63f8496e06e7b87910b8b4ae0fa8 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 17 Jun 2020 00:34:06 -0500 Subject: [PATCH] Fix message event dispatch --- src/eventdispatcher.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eventdispatcher.nim b/src/eventdispatcher.nim index e78fbdf..a7392a3 100644 --- a/src/eventdispatcher.nim +++ b/src/eventdispatcher.nim @@ -6,7 +6,7 @@ proc readyEvent(json: JsonNode) = proc messageCreateEvent(json: JsonNode) = let msg = newMessage(json) - let messageCreateEvnt = MessageCreateEvent(message: msg) + let messageCreateEvnt = MessageCreateEvent(message: msg, name: $EventType.evtMessageCreate) dispatchEvent(messageCreateEvnt) let internalEventTable: Table[string, proc(json: JsonNode) {.nimcall.}] = {