From 08a1db0e4a3e76d74ba7cfab68f5ca63aeb477e3 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Fri, 1 Apr 2022 04:42:55 -0700 Subject: [PATCH] state: Fix up ReadyEvent --- gateway/events.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gateway/events.go b/gateway/events.go index 2fc0a58..7799ffa 100644 --- a/gateway/events.go +++ b/gateway/events.go @@ -630,8 +630,10 @@ type RelationshipRemoveEvent struct { } // ReadyEvent is a dispatch event for READY. +// +// https://discord.com/developers/docs/topics/gateway#ready type ReadyEvent struct { - Version int `json:"version"` + Version int `json:"v"` User discord.User `json:"user"` SessionID string `json:"session_id"` @@ -641,6 +643,11 @@ type ReadyEvent struct { Shard *Shard `json:"shard,omitempty"` + Application struct { + ID discord.AppID `json:"id"` + Flags discord.ApplicationFlags `json:"flags"` + } `json:"application"` + // Undocumented fields UserSettings *UserSettings `json:"user_settings,omitempty"`