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:
parent
0ab9d901e1
commit
5a18435190
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue