Added Missing CustomStatus type, and Missing Slice for Activities which gets returned now because custom triggers a presnece update

This commit is contained in:
Helba 2020-01-22 14:52:56 -08:00
commit 949945a955
2 changed files with 9 additions and 7 deletions

2
go.mod
View file

@ -5,4 +5,4 @@ require (
golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16 golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16
) )
go 1.10 go 1.13

View file

@ -587,12 +587,13 @@ type VoiceState struct {
// A Presence stores the online, offline, or idle and game status of Guild members. // A Presence stores the online, offline, or idle and game status of Guild members.
type Presence struct { type Presence struct {
User *User `json:"user"` User *User `json:"user"`
Status Status `json:"status"` Status Status `json:"status"`
Game *Game `json:"game"` Game *Game `json:"game"`
Nick string `json:"nick"` Activities []*Game `json:"activities"`
Roles []string `json:"roles"` Nick string `json:"nick"`
Since *int `json:"since"` Roles []string `json:"roles"`
Since *int `json:"since"`
} }
// GameType is the type of "game" (see GameType* consts) in the Game struct // GameType is the type of "game" (see GameType* consts) in the Game struct
@ -604,6 +605,7 @@ const (
GameTypeStreaming GameTypeStreaming
GameTypeListening GameTypeListening
GameTypeWatching GameTypeWatching
GameTypeCustom
) )
// A Game struct holds the name of the "playing .." game for a user // A Game struct holds the name of the "playing .." game for a user