From 1505c7ede678cd63312249dc527475a1e879870d Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Fri, 13 Nov 2015 19:46:52 -0600 Subject: [PATCH] Updated Guild struct, fixed embed_channel_id to be a int from string. --- guild.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/guild.go b/guild.go index e074cc4..49fea09 100644 --- a/guild.go +++ b/guild.go @@ -1,23 +1,23 @@ package discordgo type Guild struct { - Id int `json:"id,string"` - Name string `json:"name"` - Icon string `json:"icon"` - Region string `json:"region"` - Joined_at string `json:"joined_at"` // make time stamp - Afk_timeout int `json:"afk_timeout"` - Afk_channel_id int `json:"afk_channel_id,string"` - Embed_channel_id int `json:"embed_channel_id"` - Embed_enabled bool `json:"embed_enabled"` - Owner_id int `json:"owner_id,string"` - Large bool `json:"large"` // ?? - JoinedAt string `json:"joined_at"` // make this a timestamp - Roles []Role `json:"roles"` - Members []Member `json:"members"` - Presences []Presence `json:"presences"` - Channels []Channel `json:"channels"` - VoiceStates []VoiceState `json:"voice_states"` + Id int `json:"id,string"` + Name string `json:"name"` + Icon string `json:"icon"` + Region string `json:"region"` + JoinedAt string `json:"joined_at"` // make time stamp + AfkTimeout int `json:"afk_timeout"` + AfkChannelId int `json:"afk_channel_id,string"` + EmbedChannelId int `json:"embed_channel_id,string"` + EmbedEnabled bool `json:"embed_enabled"` + OwnerId int `json:"owner_id,string"` + Large bool `json:"large"` // ?? + JoinedAt string `json:"joined_at"` // make this a timestamp + Roles []Role `json:"roles"` + Members []Member `json:"members"` + Presences []Presence `json:"presences"` + Channels []Channel `json:"channels"` + VoiceStates []VoiceState `json:"voice_states"` } type Role struct {