Closed jablko closed 3 years ago
Use eventHandler.on()/eventHandler.receive(), which type checks both the event names and payloads. I opened separate PRs for #360, #361, and #362. Only the last commit belongs to this PR.
eventHandler.on()
eventHandler.receive()
Two comments left -- I added a commit that does them, so if you agree with them it can be merged.
(In any case, I'll do that when I'm on DT since I'll want to monitor the bot when this code is deployed.)
Use
eventHandler.on()
/eventHandler.receive()
, which type checks both the event names and payloads. I opened separate PRs for #360, #361, and #362. Only the last commit belongs to this PR.