Add JSON tags to Activity struct

This commit is contained in:
Carson Hoffman 2021-01-26 13:24:24 -05:00
parent d4d47b65ee
commit e6a8d51c9b
No known key found for this signature in database
GPG key ID: 05B660CB452C657F

View file

@ -1116,9 +1116,9 @@ type GatewayStatusUpdate struct {
// Activity defines the Activity sent with GatewayStatusUpdate // Activity defines the Activity sent with GatewayStatusUpdate
// https://discord.com/developers/docs/topics/gateway#activity-object // https://discord.com/developers/docs/topics/gateway#activity-object
type Activity struct { type Activity struct {
Name string Name string `json:"name"`
Type ActivityType Type ActivityType `json:"type"`
URL string URL string `json:"url,omitempty"`
} }
// ActivityType is the type of Activity (see ActivityType* consts) in the Activity struct // ActivityType is the type of Activity (see ActivityType* consts) in the Activity struct