forked from pothtonswer/discordmuffin
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
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue