Skip to content

Commit

Permalink
Add JSON tags to Activity struct
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonHoffman committed Jan 26, 2021
1 parent d4d47b6 commit e6a8d51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6a8d51

Please sign in to comment.