Browse Source

Add JSON tags to Activity struct

Carson Hoffman 4 years ago
parent
commit
e6a8d51c9b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      structs.go

+ 3 - 3
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