feat: add missing fields to VoiceState struct (#1190)

This commit is contained in:
Andre Cesar Gomes 2022-06-03 09:58:53 -03:00 committed by GitHub
parent 414e505c56
commit c8c153872c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1098,15 +1098,19 @@ func (r Roles) Swap(i, j int) {
// A VoiceState stores the voice states of Guilds // A VoiceState stores the voice states of Guilds
type VoiceState struct { type VoiceState struct {
UserID string `json:"user_id"`
SessionID string `json:"session_id"`
ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id"` GuildID string `json:"guild_id"`
Suppress bool `json:"suppress"` ChannelID string `json:"channel_id"`
SelfMute bool `json:"self_mute"` UserID string `json:"user_id"`
SelfDeaf bool `json:"self_deaf"` Member *Member `json:"member"`
Mute bool `json:"mute"` SessionID string `json:"session_id"`
Deaf bool `json:"deaf"` Deaf bool `json:"deaf"`
Mute bool `json:"mute"`
SelfDeaf bool `json:"self_deaf"`
SelfMute bool `json:"self_mute"`
SelfStream bool `json:"self_stream"`
SelfVideo bool `json:"self_video"`
Suppress bool `json:"suppress"`
RequestToSpeakTimestamp *time.Time `json:"request_to_speak_timestamp"`
} }
// A Presence stores the online, offline, or idle and game status of Guild members. // A Presence stores the online, offline, or idle and game status of Guild members.