From 4906a4cf9c6b2d536143d8db31c278be1589a52c Mon Sep 17 00:00:00 2001 From: jonas747 Date: Sun, 24 Apr 2016 23:35:37 +0200 Subject: [PATCH] Added some undocumented fields to ready event --- structs.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/structs.go b/structs.go index 7ca71a6..e17923c 100644 --- a/structs.go +++ b/structs.go @@ -277,6 +277,19 @@ type Ready struct { ReadState []*ReadState `json:"read_state"` PrivateChannels []*Channel `json:"private_channels"` Guilds []*Guild `json:"guilds"` + + // Undocumented fields + Settings *Settings `json:"user_settings"` + UserGuildSettings []*UserGuildSettings `json:"user_guild_settings"` + Relationships []*Relationship `json:"relationships"` + Presences []*Presence `json:"presences"` +} + +// A Relationship between the current user and this user +type Relationship struct { + User *User `json:"user"` + Type int `json:"type"` // ? + Id string `json:"id"` // Seems to be same as the User.ID? } // A RateLimit struct holds information related to a specific rate limit.