From 25b892c0ae9aee95477f8cea71fecbf51f668768 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 7 Apr 2022 18:22:05 +0200 Subject: Fix heartbeat message --- pkg/discord/gateway.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/discord') 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) -- cgit 1.4.1