From 5a18435190a1993750402e6daea816255c5f9b08 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 7 Feb 2021 17:02:55 -0800 Subject: [PATCH] Gateway: Better Activities type for UpdateStatusData This is a breaking change. --- gateway/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/commands.go b/gateway/commands.go index 5e2023d..fc3591c 100644 --- a/gateway/commands.go +++ b/gateway/commands.go @@ -123,8 +123,8 @@ func (g *Gateway) UpdateVoiceStateCtx(ctx context.Context, data UpdateVoiceState type UpdateStatusData struct { Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle - // Activities can either be null, an empty slice, or be omitted. - Activities *[]discord.Activity `json:"activities,omitempty"` + // Activities can be null or an empty slice. + Activities []discord.Activity `json:"activities"` Status Status `json:"status"` AFK bool `json:"afk"`