mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-08-21 15:54:48 +00:00
discord: Add VoiceState.SelfVideo; fixes #287
This commit is contained in:
parent
528281b739
commit
e8131db8df
|
@ -30,6 +30,7 @@ func NowTimestamp() Timestamp {
|
||||||
func (t *Timestamp) UnmarshalJSON(v []byte) error {
|
func (t *Timestamp) UnmarshalJSON(v []byte) error {
|
||||||
str := strings.Trim(string(v), `"`)
|
str := strings.Trim(string(v), `"`)
|
||||||
if str == "null" {
|
if str == "null" {
|
||||||
|
*t = Timestamp{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,10 @@ type VoiceState struct {
|
||||||
SelfDeaf bool `json:"self_deaf"`
|
SelfDeaf bool `json:"self_deaf"`
|
||||||
SelfMute bool `json:"self_mute"`
|
SelfMute bool `json:"self_mute"`
|
||||||
SelfStream bool `json:"self_stream,omitempty"`
|
SelfStream bool `json:"self_stream,omitempty"`
|
||||||
|
SelfVideo bool `json:"self_video,omitempty"`
|
||||||
Suppress bool `json:"suppress"`
|
Suppress bool `json:"suppress"`
|
||||||
|
|
||||||
|
RequestToSpeakTimestamp Timestamp `json:"request_to_speak_timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type VoiceRegion struct {
|
type VoiceRegion struct {
|
||||||
|
|
Loading…
Reference in a new issue