Updated Guild struct, fixed embed_channel_id to be a int from string.
This commit is contained in:
parent
3794c1a31e
commit
1505c7ede6
1 changed files with 17 additions and 17 deletions
12
guild.go
12
guild.go
|
@ -5,12 +5,12 @@ type Guild struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Icon string `json:"icon"`
|
Icon string `json:"icon"`
|
||||||
Region string `json:"region"`
|
Region string `json:"region"`
|
||||||
Joined_at string `json:"joined_at"` // make time stamp
|
JoinedAt string `json:"joined_at"` // make time stamp
|
||||||
Afk_timeout int `json:"afk_timeout"`
|
AfkTimeout int `json:"afk_timeout"`
|
||||||
Afk_channel_id int `json:"afk_channel_id,string"`
|
AfkChannelId int `json:"afk_channel_id,string"`
|
||||||
Embed_channel_id int `json:"embed_channel_id"`
|
EmbedChannelId int `json:"embed_channel_id,string"`
|
||||||
Embed_enabled bool `json:"embed_enabled"`
|
EmbedEnabled bool `json:"embed_enabled"`
|
||||||
Owner_id int `json:"owner_id,string"`
|
OwnerId int `json:"owner_id,string"`
|
||||||
Large bool `json:"large"` // ??
|
Large bool `json:"large"` // ??
|
||||||
JoinedAt string `json:"joined_at"` // make this a timestamp
|
JoinedAt string `json:"joined_at"` // make this a timestamp
|
||||||
Roles []Role `json:"roles"`
|
Roles []Role `json:"roles"`
|
||||||
|
|
Loading…
Reference in a new issue