1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-02-08 20:47:13 +00:00

state: Fix up ReadyEvent

This commit is contained in:
diamondburned 2022-04-01 04:42:55 -07:00
parent 406171d7a9
commit 08a1db0e4a
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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"`