1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-03-23 02:19:22 +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
type (
// Clients may only update their game status 5 times per 20 seconds.
PresenceUpdateEvent discord.Presence
PresenceUpdateEvent = discord.Presence
PresencesReplaceEvent []discord.Presence
// SessionsReplaceEvent is an undocumented user event. It's likely used for
@ -260,12 +260,12 @@ type (
Member *discord.Member `json:"member,omitempty"`
}
UserUpdateEvent discord.User
UserUpdateEvent = discord.User
)
// https://discordapp.com/developers/docs/topics/gateway#voice
type (
VoiceStateUpdateEvent discord.VoiceState
VoiceStateUpdateEvent = discord.VoiceState
VoiceServerUpdateEvent struct {
Token string `json:"token"`
GuildID discord.Snowflake `json:"guild_id"`
@ -283,8 +283,8 @@ type (
// Undocumented
type (
UserGuildSettingsUpdateEvent UserGuildSettings
UserSettingsUpdateEvent UserSettings
UserGuildSettingsUpdateEvent = UserGuildSettings
UserSettingsUpdateEvent = UserSettings
UserNoteUpdateEvent struct {
ID discord.Snowflake `json:"id"`
Note string `json:"note"`
@ -292,6 +292,6 @@ type (
)
type (
RelationshipAdd Relationship
RelationshipRemove Relationship
RelationshipAdd = Relationship
RelationshipRemove = Relationship
)