Procházet zdrojové kódy

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

Bruce Marriner před 9 roky
rodič
revize
c78ee4399d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      channel.go

+ 1 - 1
channel.go

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