From e6a8d51c9b6ddb97734d20f6060483a8a932710a Mon Sep 17 00:00:00 2001 From: Carson Hoffman Date: Tue, 26 Jan 2021 13:24:24 -0500 Subject: [PATCH] Add JSON tags to Activity struct --- structs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/structs.go b/structs.go index 44557ad1c..eb84ea80f 100644 --- a/structs.go +++ b/structs.go @@ -1116,9 +1116,9 @@ type GatewayStatusUpdate struct { // Activity defines the Activity sent with GatewayStatusUpdate // https://discord.com/developers/docs/topics/gateway#activity-object type Activity struct { - Name string - Type ActivityType - URL string + Name string `json:"name"` + Type ActivityType `json:"type"` + URL string `json:"url,omitempty"` } // ActivityType is the type of Activity (see ActivityType* consts) in the Activity struct