1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-03-24 19:09:19 +00:00

Gateway: Fix #45

This commit is contained in:
mavolin 2020-05-12 04:49:11 +02:00
parent 323dc2193e
commit f28592e803
No known key found for this signature in database
GPG key ID: D8681218EDF216DF

View file

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