Преглед на файлове

Figured out relationship type

jonas747 преди 8 години
родител
ревизия
88c37e75a1
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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.