Merge pull request #174 from jonas747/dunno
Added new fields to READY struct.
This commit is contained in:
commit
ceac4e3e25
1 changed files with 13 additions and 0 deletions
13
structs.go
13
structs.go
|
@ -281,6 +281,19 @@ type Ready struct {
|
||||||
ReadState []*ReadState `json:"read_state"`
|
ReadState []*ReadState `json:"read_state"`
|
||||||
PrivateChannels []*Channel `json:"private_channels"`
|
PrivateChannels []*Channel `json:"private_channels"`
|
||||||
Guilds []*Guild `json:"guilds"`
|
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 logged in user and Relationship.User
|
||||||
|
type Relationship struct {
|
||||||
|
User *User `json:"user"`
|
||||||
|
Type int `json:"type"` // 1 = friend, 2 = blocked, 3 = incoming friend req, 4 = sent friend req
|
||||||
|
ID string `json:"id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// A RateLimit struct holds information related to a specific rate limit.
|
// A RateLimit struct holds information related to a specific rate limit.
|
||||||
|
|
Loading…
Reference in a new issue