Fix message event dispatch

This commit is contained in:
SeanOMik 2020-06-17 00:34:06 -05:00
parent 3354b18998
commit 2e12d71f0a
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 1 additions and 1 deletions

View File

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