diff options
| author | Mel <einebeere@gmail.com> | 2022-04-12 17:21:05 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-04-12 17:21:05 +0200 |
| commit | 6163d259ed52991e2f95632b5a0516607aa56a5f (patch) | |
| tree | d87514d024d55f976ec78176fd0b0d8ebe946d7c /pkg/discord/gateway/payloads.go | |
| parent | 6cd2890450aaf71e97004d421237996f0a42d04c (diff) | |
| download | jinx-6163d259ed52991e2f95632b5a0516607aa56a5f.tar.zst jinx-6163d259ed52991e2f95632b5a0516607aa56a5f.zip | |
Handle gateway errors and reconnections
Diffstat (limited to 'pkg/discord/gateway/payloads.go')
| -rw-r--r-- | pkg/discord/gateway/payloads.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/discord/gateway/payloads.go b/pkg/discord/gateway/payloads.go index 8da894f..87c37d3 100644 --- a/pkg/discord/gateway/payloads.go +++ b/pkg/discord/gateway/payloads.go @@ -28,11 +28,17 @@ type Payload[D any] struct { } type IdentifyCmd struct { - Token string `json:"token"` - Intents uint64 `json:"intents"` + Token string `json:"token"` + Intents uint64 `json:"intents"` Properties IdentifyProperties `json:"properties"` } +type ResumeCmd struct { + Token string `json:"token"` + SessionID string `json:"session_id"` + Sequence uint64 `json:"seq"` +} + type HelloEvent struct { HeartbeatInterval uint64 `json:"heartbeat_interval"` } |
