2020-01-06 03:48:39 +00:00
|
|
|
package discord
|
|
|
|
|
|
|
|
type VoiceState struct {
|
|
|
|
// GuildID isn't available from the Guild struct.
|
2020-11-22 14:48:36 +00:00
|
|
|
GuildID GuildID `json:"guild_id"`
|
2020-01-06 03:48:39 +00:00
|
|
|
|
2020-11-22 14:48:36 +00:00
|
|
|
ChannelID ChannelID `json:"channel_id"`
|
|
|
|
UserID UserID `json:"user_id"`
|
2020-01-06 03:48:39 +00:00
|
|
|
Member *Member `json:"member,omitempty"`
|
|
|
|
SessionID string `json:"session_id"`
|
|
|
|
|
|
|
|
Deaf bool `json:"deaf"`
|
|
|
|
Mute bool `json:"mute"`
|
|
|
|
|
|
|
|
SelfDeaf bool `json:"self_deaf"`
|
|
|
|
SelfMute bool `json:"self_mute"`
|
|
|
|
SelfStream bool `json:"self_stream,omitempty"`
|
2021-10-30 23:43:28 +00:00
|
|
|
SelfVideo bool `json:"self_video,omitempty"`
|
2020-01-06 03:48:39 +00:00
|
|
|
Suppress bool `json:"suppress"`
|
2021-10-30 23:43:28 +00:00
|
|
|
|
2023-01-06 14:43:46 +00:00
|
|
|
RequestToSpeakTimestamp *Timestamp `json:"request_to_speak_timestamp"`
|
2020-01-06 03:48:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type VoiceRegion struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
VIP bool `json:"vip"`
|
|
|
|
Optimal bool `json:"optimal"`
|
|
|
|
Deprecated bool `json:"deprecated"`
|
|
|
|
Custom bool `json:"custom"` // used for events
|
|
|
|
}
|