Fix message event dispatch
This commit is contained in:
parent
3354b18998
commit
2e12d71f0a
|
@ -6,7 +6,7 @@ proc readyEvent(json: JsonNode) =
|
||||||
|
|
||||||
proc messageCreateEvent(json: JsonNode) =
|
proc messageCreateEvent(json: JsonNode) =
|
||||||
let msg = newMessage(json)
|
let msg = newMessage(json)
|
||||||
let messageCreateEvnt = MessageCreateEvent(message: msg)
|
let messageCreateEvnt = MessageCreateEvent(message: msg, name: $EventType.evtMessageCreate)
|
||||||
dispatchEvent(messageCreateEvnt)
|
dispatchEvent(messageCreateEvnt)
|
||||||
|
|
||||||
let internalEventTable: Table[string, proc(json: JsonNode) {.nimcall.}] = {
|
let internalEventTable: Table[string, proc(json: JsonNode) {.nimcall.}] = {
|
||||||
|
|
Reference in New Issue