Przeglądaj źródła

Figured out relationship type

jonas747 8 lat temu
rodzic
commit
88c37e75a1
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      structs.go

+ 3 - 3
structs.go

@@ -285,11 +285,11 @@ type Ready struct {
 	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 {
 	User *User  `json:"user"`
-	Type int    `json:"type"` // ?
-	Id   string `json:"id"`   // Seems to be same as the User.ID?
+	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.