From 8aa60ebf8e0c323ffbda0cc78505dcce8d0e714f Mon Sep 17 00:00:00 2001 From: diamondburned Date: Wed, 28 Oct 2020 14:01:08 -0700 Subject: [PATCH] *: Removed the Game field The Activities field should now be used. Access the first element. --- discord/guild.go | 3 --- gateway/commands.go | 1 - gateway/events.go | 1 - 3 files changed, 5 deletions(-) diff --git a/discord/guild.go b/discord/guild.go index 1b71c23..ea3c093 100644 --- a/discord/guild.go +++ b/discord/guild.go @@ -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"` diff --git a/gateway/commands.go b/gateway/commands.go index f2e3704..35c13cd 100644 --- a/gateway/commands.go +++ b/gateway/commands.go @@ -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"` diff --git a/gateway/events.go b/gateway/events.go index 74f6811..c88761e 100644 --- a/gateway/events.go +++ b/gateway/events.go @@ -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 {