From 8e8bff65922378c1e7eed752add93972e769978d Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 4 Apr 2022 14:10:05 +0200 Subject: Simple event handling --- pkg/discord/payloads.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkg/discord/payloads.go') diff --git a/pkg/discord/payloads.go b/pkg/discord/payloads.go index d7ab6d4..81c6c68 100644 --- a/pkg/discord/payloads.go +++ b/pkg/discord/payloads.go @@ -28,11 +28,12 @@ type GatewayIdentifyMsg struct { Intents uint64 `json:"intents"` Properties GatewayIdentifyProperties `json:"properties"` } -type GatewayHelloMsg struct { + +type GatewayHelloEvent struct { HeartbeatInterval uint64 `json:"heartbeat_interval"` } -type GatewayReadyMsg struct { +type GatewayReadyEvent struct { Version uint64 `json:"v"` User User `json:"user"` Guilds []Guild `json:"guilds"` @@ -40,6 +41,8 @@ type GatewayReadyMsg struct { Shard []int `json:"shard"` } +type GatewayMessageCreateEvent Message + type GatewayIdentifyProperties struct { OS string `json:"$os"` Browser string `json:"$browser"` -- cgit 1.4.1