Skip to content

Commit 5a18435

Browse files
committed
Gateway: Better Activities type for UpdateStatusData
This is a breaking change.
1 parent 0ab9d90 commit 5a18435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gateway/commands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ func (g *Gateway) UpdateVoiceStateCtx(ctx context.Context, data UpdateVoiceState
123123
type UpdateStatusData struct {
124124
Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle
125125

126-
// Activities can either be null, an empty slice, or be omitted.
127-
Activities *[]discord.Activity `json:"activities,omitempty"`
126+
// Activities can be null or an empty slice.
127+
Activities []discord.Activity `json:"activities"`
128128

129129
Status Status `json:"status"`
130130
AFK bool `json:"afk"`

0 commit comments

Comments
 (0)