discord: Add VoiceState.SelfVideo; fixes #287

This commit is contained in:
diamondburned 2021-10-30 16:43:28 -07:00
parent 528281b739
commit e8131db8df
No known key found for this signature in database
GPG Key ID: D78C4471CE776659
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ func NowTimestamp() Timestamp {
func (t *Timestamp) UnmarshalJSON(v []byte) error {
str := strings.Trim(string(v), `"`)
if str == "null" {
*t = Timestamp{}
return nil
}

View File

@ -15,7 +15,10 @@ type VoiceState struct {
SelfDeaf bool `json:"self_deaf"`
SelfMute bool `json:"self_mute"`
SelfStream bool `json:"self_stream,omitempty"`
SelfVideo bool `json:"self_video,omitempty"`
Suppress bool `json:"suppress"`
RequestToSpeakTimestamp Timestamp `json:"request_to_speak_timestamp"`
}
type VoiceRegion struct {