From 75a5d6bf629f130c474f9b1e38d8522e100105b7 Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Mon, 22 Feb 2016 08:20:36 -0800 Subject: [PATCH] Bring back color --- structs.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/structs.go b/structs.go index 2b57062..c3f267d 100644 --- a/structs.go +++ b/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