[Feature] Add missing VoiceChannel properties (#2573)

* add missing properties

* forgot about `MockedVoiceChannel`
This commit is contained in:
Misha133
2023-02-06 15:25:59 +03:00
committed by GitHub
parent 0af835ab0f
commit 1e21a6ed4a
9 changed files with 45 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ namespace Discord
/// </returns>
int? UserLimit { get; }
/// <summary>
/// Gets the video quality mode for this channel.
/// </summary>
VideoQualityMode VideoQualityMode { get; }
/// <summary>
/// Bulk-deletes multiple messages.
/// </summary>

View File

@@ -0,0 +1,17 @@
namespace Discord;
/// <summary>
/// Represents a video quality mode for voice channels.
/// </summary>
public enum VideoQualityMode
{
/// <summary>
/// Discord chooses the quality for optimal performance.
/// </summary>
Auto = 1,
/// <summary>
/// 720p.
/// </summary>
Full = 2
}

View File

@@ -17,5 +17,10 @@ namespace Discord
/// Gets or sets the channel voice region id, automatic when set to <see langword="null"/>.
/// </summary>
public Optional<string> RTCRegion { get; set; }
/// <summary>
/// Get or sets the video quality mode for this channel.
/// </summary>
public Optional<VideoQualityMode> VideoQualityMode { get; set; }
}
}