1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-20 19:47:12 +00:00

gateway: Add Ready.Sessions

This commit is contained in:
diamondburned 2022-10-31 04:11:45 -07:00
parent 181dcb1bdd
commit 60bcb4c966
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -726,6 +726,7 @@ type (
UserGuildSettings []UserGuildSetting `json:"user_guild_settings,omitempty"`
Relationships []discord.Relationship `json:"relationships,omitempty"`
Presences []discord.Presence `json:"presences,omitempty"`
Sessions []UserSession `json:"sessions,omitempty"`
FriendSuggestionCount int `json:"friend_suggestion_count,omitempty"`
GeoOrderedRTCRegions []string `json:"geo_ordered_rtc_regions,omitempty"`
@ -746,6 +747,17 @@ type (
MentionCount int `json:"mention_count"`
}
UserSession struct {
Status discord.Status `json:"status"`
SessionID string `json:"session_id"`
ClientInfo struct {
Version int `json:"version"`
OS string `json:"os"`
Client string `json:"client"`
} `json:"client_info"`
Activities []discord.Activity `json:"activities"`
}
// UserSettings is the struct for (almost) all user settings. It is
// undocumented.
UserSettings struct {