1
0
Fork 0
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:
diamondburned 2022-10-31 04:30:10 -07:00
parent 60bcb4c966
commit f8d6199e80
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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