Figured out relationship type

This commit is contained in:
jonas747 2016-04-25 00:56:51 +02:00
parent 4906a4cf9c
commit 88c37e75a1

View file

@ -285,11 +285,11 @@ type Ready struct {
Presences []*Presence `json:"presences"` Presences []*Presence `json:"presences"`
} }
// A Relationship between the current user and this user // A Relationship between the logged in user and Relationship.User
type Relationship struct { type Relationship struct {
User *User `json:"user"` User *User `json:"user"`
Type int `json:"type"` // ? Type int `json:"type"` // 1 = friend, 2 = blocked, 3 = incoming friend req, 4 = sent friend req
Id string `json:"id"` // Seems to be same as the User.ID? 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.