Gateway: GuildSubscribeData should omit empty Channels map
This commit is contained in:
parent
86dd05da9e
commit
1bec57523d
|
@ -149,7 +149,7 @@ type GuildSubscribeData struct {
|
|||
GuildID discord.GuildID `json:"guild_id"`
|
||||
|
||||
// Channels is not documented. It's used to fetch the right members sidebar.
|
||||
Channels map[discord.ChannelID][][2]int `json:"channels"`
|
||||
Channels map[discord.ChannelID][][2]int `json:"channels,omitempty"`
|
||||
}
|
||||
|
||||
func (g *Gateway) GuildSubscribe(data GuildSubscribeData) error {
|
||||
|
|
Loading…
Reference in New Issue