about summary refs log tree commit diff
path: root/pkg/discord
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-04-07 18:22:05 +0200
committerMel <einebeere@gmail.com>2022-04-07 18:22:05 +0200
commit25b892c0ae9aee95477f8cea71fecbf51f668768 (patch)
tree8acd8af3506e39d241f5dfeec483bed6bd89ab2e /pkg/discord
parent4b08666755bc3a490815644c1a5f93abdb93a093 (diff)
downloadjinx-25b892c0ae9aee95477f8cea71fecbf51f668768.tar.zst
jinx-25b892c0ae9aee95477f8cea71fecbf51f668768.zip
Fix heartbeat message
Diffstat (limited to 'pkg/discord')
-rw-r--r--pkg/discord/gateway.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/discord/gateway.go b/pkg/discord/gateway.go
index 13726b7..68bb3f2 100644
--- a/pkg/discord/gateway.go
+++ b/pkg/discord/gateway.go
@@ -129,8 +129,9 @@ func (g *GatewayImpl) Listen() {
 }
 
 func (g *GatewayImpl) Heartbeat() error {
-	msg := GatewayPayload[any]{
-		Op: GATEWAY_OP_HEARTBEAT,
+	msg := GatewayPayload[uint64]{
+		Op:   GATEWAY_OP_HEARTBEAT,
+		Data: g.lastSeq,
 	}
 
 	return g.send(msg)