Преглед изворни кода

Add nick and roles to Presence

jonas747 пре 8 година
родитељ
комит
5d1dd7ddac
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      structs.go

+ 5 - 3
structs.go

@@ -276,9 +276,11 @@ type VoiceState struct {
 
 // A Presence stores the online, offline, or idle and game status of Guild members.
 type Presence struct {
-	User   *User  `json:"user"`
-	Status Status `json:"status"`
-	Game   *Game  `json:"game"`
+	User   *User    `json:"user"`
+	Status Status   `json:"status"`
+	Game   *Game    `json:"game"`
+	Nick   string   `json:"nick"`
+	Roles  []string `json:"roles"`
 }
 
 // A Game struct holds the name of the "playing .." game for a user