1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-01 06:48:51 +00:00

*: Removed the Game field

The Activities field should now be used. Access the first element.
This commit is contained in:
diamondburned 2020-10-28 14:01:08 -07:00
parent 6ce268a7fa
commit 8aa60ebf8e
3 changed files with 0 additions and 5 deletions

View file

@ -320,9 +320,6 @@ type Presence struct {
// These fields are only filled in gateway events, according to the
// documentation.
// Game is null, or the user's current activity.
Game *Activity `json:"game"`
// GuildID is the id of the guild
GuildID GuildID `json:"guild_id"`

View file

@ -124,7 +124,6 @@ type UpdateStatusData struct {
Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle
// Both fields are nullable.
Game *discord.Activity `json:"game,omitempty"`
Activities *[]discord.Activity `json:"activities,omitempty"`
Status discord.Status `json:"status"`

View file

@ -275,7 +275,6 @@ type (
Status discord.Status `json:"status"`
SessionID string `json:"session_id"`
Game *discord.Activity `json:"game"`
Activities []discord.Activity `json:"activities"`
ClientInfo struct {