|
@@ -323,9 +323,30 @@ const (
|
|
|
|
|
|
// A Game struct holds the name of the "playing .." game for a user
|
|
|
type Game struct {
|
|
|
- Name string `json:"name"`
|
|
|
- Type GameType `json:"type"`
|
|
|
- URL string `json:"url,omitempty"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ Type GameType `json:"type"`
|
|
|
+ URL string `json:"url,omitempty"`
|
|
|
+ Details string `json:"details,omitempty"`
|
|
|
+ State string `json:"state,omitempty"`
|
|
|
+ TimeStamps TimeStamps `json:"timestamps,omitempty"`
|
|
|
+ Assets Assets `json:"assets,omitempty"`
|
|
|
+ ApplicationID string `json:"application_id,omitempty"`
|
|
|
+ Instance int8 `json:"instance,omitempty"`
|
|
|
+ // TODO: Party and Secrets (unknown structure)
|
|
|
+}
|
|
|
+
|
|
|
+// A TimeStamps struct contains start and end times used in the rich presence "playing .." Game
|
|
|
+type TimeStamps struct {
|
|
|
+ EndTimestamp uint `json:"end,omitempty"`
|
|
|
+ StartTimestamp uint `json:"start,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+// An Assets struct contains assets and labels used in the rich presence "playing .." Game
|
|
|
+type Assets struct {
|
|
|
+ LargeImageID string `json:"large_image,omitempty"`
|
|
|
+ SmallImageID string `json:"small_image,omitempty"`
|
|
|
+ LargeText string `json:"large_text,omitempty"`
|
|
|
+ SmallText string `json:"small_text,omitempty"`
|
|
|
}
|
|
|
|
|
|
// A Member stores user information for Guild members.
|