From e8694c74e5b4173192be1e4b57853016f4bda2ac Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Tue, 7 Apr 2020 12:26:15 -0700 Subject: [PATCH] Gateway: Slightly better documenting --- gateway/commands.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gateway/commands.go b/gateway/commands.go index 8fb1ebb..dac4079 100644 --- a/gateway/commands.go +++ b/gateway/commands.go @@ -90,7 +90,8 @@ func (g *Gateway) UpdateVoiceState(data UpdateVoiceStateData) error { type UpdateStatusData struct { Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle - Game *discord.Activity `json:"game,omitempty"` // nullable + // Both fields are nullable. + Game *discord.Activity `json:"game,omitempty"` Activities *[]discord.Activity `json:"activities,omitempty"` Status discord.Status `json:"status"`