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.}] = {