mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-08 12:36:58 +00:00
*: Removed the Game field
The Activities field should now be used. Access the first element.
This commit is contained in:
parent
6ce268a7fa
commit
8aa60ebf8e
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue