about summary refs log tree commit diff
path: root/pkg/discord/payloads.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-04-04 14:10:05 +0200
committerMel <einebeere@gmail.com>2022-04-04 14:10:05 +0200
commit8e8bff65922378c1e7eed752add93972e769978d (patch)
treed28d3a60ce4e9997309bad72d7668647bda41292 /pkg/discord/payloads.go
parent165ed818775c915e4bfd2599bdb8ca8e2975bb83 (diff)
downloadjinx-8e8bff65922378c1e7eed752add93972e769978d.tar.zst
jinx-8e8bff65922378c1e7eed752add93972e769978d.zip
Simple event handling
Diffstat (limited to 'pkg/discord/payloads.go')
-rw-r--r--pkg/discord/payloads.go7
1 files changed, 5 insertions, 2 deletions
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"`