mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-01 09:27:18 +00:00
Gateway: Separated Activity types
This commit is contained in:
parent
c9829b9e28
commit
9f6d1bde30
|
@ -120,23 +120,9 @@ type Activity struct {
|
||||||
State string `json:"state,omitempty"` // party status
|
State string `json:"state,omitempty"` // party status
|
||||||
Emoji Emoji `json:"emoji,omitempty"`
|
Emoji Emoji `json:"emoji,omitempty"`
|
||||||
|
|
||||||
Party struct {
|
Party ActivityParty `json:"party,omitempty"`
|
||||||
ID string `json:"id,omitempty"`
|
Assets ActivityAssets `json:"assets,omitempty"`
|
||||||
Size [2]int `json:"size,omitempty"` // [ current, max ]
|
Secrets ActivitySecrets `json:"secrets,omitempty"`
|
||||||
} `json:"party,omitempty"`
|
|
||||||
|
|
||||||
Assets struct {
|
|
||||||
LargeImage string `json:"large_image,omitempty"` // id
|
|
||||||
LargeText string `json:"large_text,omitempty"`
|
|
||||||
SmallImage string `json:"small_image,omitempty"` // id
|
|
||||||
SmallText string `json:"small_text,omitempty"`
|
|
||||||
} `json:"assets,omitempty"`
|
|
||||||
|
|
||||||
Secrets struct {
|
|
||||||
Join string `json:"join,omitempty"`
|
|
||||||
Spectate string `json:"spectate,omitempty"`
|
|
||||||
Match string `json:"match,omitempty"`
|
|
||||||
} `json:"secrets,omitempty"`
|
|
||||||
|
|
||||||
Instance bool `json:"instance,omitempty"`
|
Instance bool `json:"instance,omitempty"`
|
||||||
Flags ActivityFlags `json:"flags,omitempty"`
|
Flags ActivityFlags `json:"flags,omitempty"`
|
||||||
|
@ -170,3 +156,21 @@ const (
|
||||||
SyncActivity
|
SyncActivity
|
||||||
PlayActivity
|
PlayActivity
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type ActivityParty struct {
|
||||||
|
ID string `json:"id,omitempty"`
|
||||||
|
Size [2]int `json:"size,omitempty"` // [ current, max ]
|
||||||
|
}
|
||||||
|
|
||||||
|
type ActivityAssets struct {
|
||||||
|
LargeImage string `json:"large_image,omitempty"` // id
|
||||||
|
LargeText string `json:"large_text,omitempty"`
|
||||||
|
SmallImage string `json:"small_image,omitempty"` // id
|
||||||
|
SmallText string `json:"small_text,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ActivitySecrets struct {
|
||||||
|
Join string `json:"join,omitempty"`
|
||||||
|
Spectate string `json:"spectate,omitempty"`
|
||||||
|
Match string `json:"match,omitempty"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue