Commit graph

8 commits

Author SHA1 Message Date
Jonas is my name
3f2c1311d5 Export State.OnInterface (#417) 2017-08-13 19:52:05 -07:00
Jonas is my name
b4faca0f46 Add option for calling event handlers sync or async (#416)
* Add option for calling event handlers sync or async

* Small doc update
2017-07-29 17:32:20 -07:00
Chris Rhodes
c34affbc57 Report state update errors as debug. 2017-02-23 17:54:45 -08:00
Kristian Klausen
b377944b97 Switch to V5 gateway (#300)
This switch the gateway to V5, and change the heartbeat logic to
get the heartbeat_interval from the new Hello opcode instant of
READY/RESUME event.
See: https://github.com/hammerandchisel/discord-api-docs/issues/18

Fix: #220
2016-12-25 16:22:14 -08:00
Bruce Marriner
2730035a13 Don't error if we're never going to use it. 2016-12-11 13:07:15 -06:00
Bruce Marriner
7811077148 Handle error better. 2016-12-11 12:57:58 -06:00
Bruce Marriner
97d4489481 Check for errors :) 2016-12-11 12:55:06 -06:00
Chris Rhodes
36601253a4 Remove use of reflect.
This introduces gogenerate'ed EventHandlers from the files in events.go

This also adds support for AddHandlerOnce.
2016-12-03 23:31:07 -08:00