Add JSON tags to Activity struct
This commit is contained in:
parent
d4d47b65ee
commit
e6a8d51c9b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue