1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 10:43:30 +00:00

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 {