Gateway: GuildSubscribeData should omit empty Channels map

This commit is contained in:
diamondburned 2020-10-17 03:18:35 -07:00
parent 86dd05da9e
commit 1bec57523d
1 changed files with 1 additions and 1 deletions

View File

@ -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 {