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:
parent
528281b739
commit
e8131db8df
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue