Fixed error with Channel struct causing GuildID to not be stored.

This commit is contained in:
Bruce Marriner 2015-11-17 10:18:52 -06:00
parent 9b1b8b2e5c
commit c78ee4399d

View file

@ -3,7 +3,7 @@ package discordgo
// A Channel holds all data related to an individual Discord channel. // A Channel holds all data related to an individual Discord channel.
type Channel struct { type Channel struct {
ID string `json:"id"` ID string `json:"id"`
GuildID string `json:"guild_idomitempty"` GuildID string `json:"guild_id"`
Name string `json:"name"` Name string `json:"name"`
Topic string `json:"topic"` Topic string `json:"topic"`
Position int `json:"position"` Position int `json:"position"`