Gateway: Fix #45

This commit is contained in:
mavolin 2020-05-12 04:49:11 +02:00
parent 323dc2193e
commit f453c1eefa
No known key found for this signature in database
GPG Key ID: D8681218EDF216DF
1 changed files with 22 additions and 8 deletions

View File

@ -230,7 +230,9 @@ type (
// https://discordapp.com/developers/docs/topics/gateway#presence
type (
// Clients may only update their game status 5 times per 20 seconds.
PresenceUpdateEvent discord.Presence
PresenceUpdateEvent struct {
discord.Presence
}
PresencesReplaceEvent []discord.Presence
// SessionsReplaceEvent is an undocumented user event. It's likely used for
@ -260,12 +262,16 @@ type (
Member *discord.Member `json:"member,omitempty"`
}
UserUpdateEvent discord.User
UserUpdateEvent struct {
discord.User
}
)
// https://discordapp.com/developers/docs/topics/gateway#voice
type (
VoiceStateUpdateEvent discord.VoiceState
VoiceStateUpdateEvent struct {
discord.VoiceState
}
VoiceServerUpdateEvent struct {
Token string `json:"token"`
GuildID discord.Snowflake `json:"guild_id"`
@ -283,15 +289,23 @@ type (
// Undocumented
type (
UserGuildSettingsUpdateEvent UserGuildSettings
UserSettingsUpdateEvent UserSettings
UserNoteUpdateEvent struct {
UserGuildSettingsUpdateEvent struct {
UserGuildSettings
}
UserSettingsUpdateEvent struct {
UserSettings
}
UserNoteUpdateEvent struct {
ID discord.Snowflake `json:"id"`
Note string `json:"note"`
}
)
type (
RelationshipAdd Relationship
RelationshipRemove Relationship
RelationshipAdd struct {
Relationship
}
RelationshipRemove struct {
Relationship
}
)