mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-23 04:57:16 +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 {
|
type UpdateStatusData struct {
|
||||||
Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle
|
Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle
|
||||||
|
|
||||||
// Activities can either be null, an empty slice, or be omitted.
|
// Activities can be null or an empty slice.
|
||||||
Activities *[]discord.Activity `json:"activities,omitempty"`
|
Activities []discord.Activity `json:"activities"`
|
||||||
|
|
||||||
Status Status `json:"status"`
|
Status Status `json:"status"`
|
||||||
AFK bool `json:"afk"`
|
AFK bool `json:"afk"`
|
||||||
|
|
Loading…
Reference in a new issue