mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-21 17:39:25 +00:00
state: Fix up ReadyEvent
This commit is contained in:
parent
406171d7a9
commit
08a1db0e4a
|
@ -630,8 +630,10 @@ type RelationshipRemoveEvent struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadyEvent is a dispatch event for READY.
|
// ReadyEvent is a dispatch event for READY.
|
||||||
|
//
|
||||||
|
// https://discord.com/developers/docs/topics/gateway#ready
|
||||||
type ReadyEvent struct {
|
type ReadyEvent struct {
|
||||||
Version int `json:"version"`
|
Version int `json:"v"`
|
||||||
|
|
||||||
User discord.User `json:"user"`
|
User discord.User `json:"user"`
|
||||||
SessionID string `json:"session_id"`
|
SessionID string `json:"session_id"`
|
||||||
|
@ -641,6 +643,11 @@ type ReadyEvent struct {
|
||||||
|
|
||||||
Shard *Shard `json:"shard,omitempty"`
|
Shard *Shard `json:"shard,omitempty"`
|
||||||
|
|
||||||
|
Application struct {
|
||||||
|
ID discord.AppID `json:"id"`
|
||||||
|
Flags discord.ApplicationFlags `json:"flags"`
|
||||||
|
} `json:"application"`
|
||||||
|
|
||||||
// Undocumented fields
|
// Undocumented fields
|
||||||
|
|
||||||
UserSettings *UserSettings `json:"user_settings,omitempty"`
|
UserSettings *UserSettings `json:"user_settings,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue