Add self_video to VoiceState (#2137)

* Add self_video to VoiceState

* Update selfVideo flag
This commit is contained in:
EpicOfficer
2022-03-02 20:27:29 +00:00
committed by GitHub
parent 3e52fab67b
commit 8bcd3da9e4
10 changed files with 33 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ namespace Discord.API
public bool Suppress { get; set; }
[JsonProperty("self_stream")]
public bool SelfStream { get; set; }
[JsonProperty("self_video")]
public bool SelfVideo { get; set; }
[JsonProperty("request_to_speak_timestamp")]
public Optional<DateTimeOffset?> RequestToSpeakTimestamp { get; set; }
}

View File

@@ -41,6 +41,8 @@ namespace Discord.Rest
/// <inheritdoc />
bool IVoiceState.IsStreaming => false;
/// <inheritdoc />
bool IVoiceState.IsVideoing => false;
/// <inheritdoc />
DateTimeOffset? IVoiceState.RequestToSpeakTimestamp => null;
#endregion
}

View File

@@ -223,6 +223,8 @@ namespace Discord.Rest
/// <inheritdoc />
bool IVoiceState.IsStreaming => false;
/// <inheritdoc />
bool IVoiceState.IsVideoing => false;
/// <inheritdoc />
DateTimeOffset? IVoiceState.RequestToSpeakTimestamp => null;
#endregion
}

View File

@@ -131,6 +131,8 @@ namespace Discord.Rest
/// <inheritdoc />
bool IVoiceState.IsStreaming => false;
/// <inheritdoc />
bool IVoiceState.IsVideoing => false;
/// <inheritdoc />
DateTimeOffset? IVoiceState.RequestToSpeakTimestamp => null;
#endregion
}