Commit graph

5 commits

Author SHA1 Message Date
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