mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-20 17:09:35 +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
|
// These fields are only filled in gateway events, according to the
|
||||||
// documentation.
|
// documentation.
|
||||||
|
|
||||||
// Game is null, or the user's current activity.
|
|
||||||
Game *Activity `json:"game"`
|
|
||||||
|
|
||||||
// GuildID is the id of the guild
|
// GuildID is the id of the guild
|
||||||
GuildID GuildID `json:"guild_id"`
|
GuildID GuildID `json:"guild_id"`
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,6 @@ type UpdateStatusData struct {
|
||||||
Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle
|
Since discord.UnixMsTimestamp `json:"since"` // 0 if not idle
|
||||||
|
|
||||||
// Both fields are nullable.
|
// Both fields are nullable.
|
||||||
Game *discord.Activity `json:"game,omitempty"`
|
|
||||||
Activities *[]discord.Activity `json:"activities,omitempty"`
|
Activities *[]discord.Activity `json:"activities,omitempty"`
|
||||||
|
|
||||||
Status discord.Status `json:"status"`
|
Status discord.Status `json:"status"`
|
||||||
|
|
|
@ -275,7 +275,6 @@ type (
|
||||||
Status discord.Status `json:"status"`
|
Status discord.Status `json:"status"`
|
||||||
SessionID string `json:"session_id"`
|
SessionID string `json:"session_id"`
|
||||||
|
|
||||||
Game *discord.Activity `json:"game"`
|
|
||||||
Activities []discord.Activity `json:"activities"`
|
Activities []discord.Activity `json:"activities"`
|
||||||
|
|
||||||
ClientInfo struct {
|
ClientInfo struct {
|
||||||
|
|
Loading…
Reference in a new issue