Jelajahi Sumber

Bring back color

Chris Rhodes 9 tahun lalu
induk
melakukan
75a5d6bf62
1 mengubah file dengan 7 tambahan dan 8 penghapusan
  1. 7 8
      structs.go

+ 7 - 8
structs.go

@@ -170,14 +170,13 @@ type Guild struct {
 
 // A Role stores information about Discord guild member roles.
 type Role struct {
-	ID      string `json:"id"`
-	Name    string `json:"name"`
-	Managed bool   `json:"managed"`
-	Hoist   bool   `json:"hoist"`
-	// This is coming back as an int or string, for now do not parse.
-	Color       int `json:"-"`
-	Position    int `json:"position"`
-	Permissions int `json:"permissions"`
+	ID          string `json:"id"`
+	Name        string `json:"name"`
+	Managed     bool   `json:"managed"`
+	Hoist       bool   `json:"hoist"`
+	Color       int    `json:"color"`
+	Position    int    `json:"position"`
+	Permissions int    `json:"permissions"`
 }
 
 // A VoiceState stores the voice states of Guilds