mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-10-31 20:14:21 +00:00
gateway: Re-type SessionsReplaceEvent
This commit is contained in:
parent
60bcb4c966
commit
f8d6199e80
|
@ -584,20 +584,7 @@ type PresencesReplaceEvent []PresenceUpdateEvent
|
|||
|
||||
// SessionsReplaceEvent is a dispatch event. It is undocumented. It's likely
|
||||
// used for current user's presence updates.
|
||||
type SessionsReplaceEvent []struct {
|
||||
Status discord.Status `json:"status"`
|
||||
SessionID string `json:"session_id"`
|
||||
|
||||
Activities []discord.Activity `json:"activities"`
|
||||
|
||||
ClientInfo struct {
|
||||
Version int `json:"version"`
|
||||
OS string `json:"os"`
|
||||
Client string `json:"client"`
|
||||
} `json:"client_info"`
|
||||
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
type SessionsReplaceEvent []UserSession
|
||||
|
||||
// TypingStartEvent is a dispatch event.
|
||||
type TypingStartEvent struct {
|
||||
|
@ -748,14 +735,18 @@ type (
|
|||
}
|
||||
|
||||
UserSession struct {
|
||||
Status discord.Status `json:"status"`
|
||||
SessionID string `json:"session_id"`
|
||||
Status discord.Status `json:"status"`
|
||||
SessionID string `json:"session_id"`
|
||||
|
||||
Activities []discord.Activity `json:"activities"`
|
||||
|
||||
ClientInfo struct {
|
||||
Version int `json:"version"`
|
||||
OS string `json:"os"`
|
||||
Client string `json:"client"`
|
||||
} `json:"client_info"`
|
||||
Activities []discord.Activity `json:"activities"`
|
||||
|
||||
Active bool `json:"active,omitempty"`
|
||||
}
|
||||
|
||||
// UserSettings is the struct for (almost) all user settings. It is
|
||||
|
|
Loading…
Reference in a new issue