mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-15 19:33:17 +00:00
Gateway: Fix #45
This commit is contained in:
parent
323dc2193e
commit
f453c1eefa
|
@ -230,7 +230,9 @@ 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 struct {
|
||||||
|
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 +262,16 @@ type (
|
||||||
Member *discord.Member `json:"member,omitempty"`
|
Member *discord.Member `json:"member,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
UserUpdateEvent discord.User
|
UserUpdateEvent struct {
|
||||||
|
discord.User
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://discordapp.com/developers/docs/topics/gateway#voice
|
// https://discordapp.com/developers/docs/topics/gateway#voice
|
||||||
type (
|
type (
|
||||||
VoiceStateUpdateEvent discord.VoiceState
|
VoiceStateUpdateEvent struct {
|
||||||
|
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,15 +289,23 @@ type (
|
||||||
|
|
||||||
// Undocumented
|
// Undocumented
|
||||||
type (
|
type (
|
||||||
UserGuildSettingsUpdateEvent UserGuildSettings
|
UserGuildSettingsUpdateEvent struct {
|
||||||
UserSettingsUpdateEvent UserSettings
|
UserGuildSettings
|
||||||
UserNoteUpdateEvent struct {
|
}
|
||||||
|
UserSettingsUpdateEvent struct {
|
||||||
|
UserSettings
|
||||||
|
}
|
||||||
|
UserNoteUpdateEvent struct {
|
||||||
ID discord.Snowflake `json:"id"`
|
ID discord.Snowflake `json:"id"`
|
||||||
Note string `json:"note"`
|
Note string `json:"note"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
RelationshipAdd Relationship
|
RelationshipAdd struct {
|
||||||
RelationshipRemove Relationship
|
Relationship
|
||||||
|
}
|
||||||
|
RelationshipRemove struct {
|
||||||
|
Relationship
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue