1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

Gateway: Better Activities type for UpdateStatusData

This is a breaking change.
This commit is contained in:
diamondburned 2021-02-07 17:02:55 -08:00
parent 0ab9d901e1
commit 5a18435190

View file

@ -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"`