From 1bec57523da1b881f24697d81c81759871e1f5f3 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 17 Oct 2020 03:18:35 -0700 Subject: [PATCH] Gateway: GuildSubscribeData should omit empty Channels map --- gateway/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/commands.go b/gateway/commands.go index 2182e83..f2e3704 100644 --- a/gateway/commands.go +++ b/gateway/commands.go @@ -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 {