diff --git a/src/client.nim b/src/client.nim index 87140d2..e8aa4d4 100644 --- a/src/client.nim +++ b/src/client.nim @@ -70,7 +70,7 @@ proc handleWebsocketPacket(client: DiscordClient) {.async.} = of ord(DiscordOpCode.opHeartbeatAck): client.heartbeatAcked = true of ord(DiscordOpCode.opDispatch): - discard handleDiscordEvent(client, json["d"], json["t"].getStr()) + asyncCheck(handleDiscordEvent(client, json["d"], json["t"].getStr())) else: discard