Class VoiceChannelProperties
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Provides properties that are used to modify an IVoiceChannel with the specified changes.
public class VoiceChannelProperties : TextChannelProperties
- Inheritance
-
VoiceChannelProperties
- Inherited Members
Examples
The following example uses ModifyAsync to apply changes specified in the properties,
var channel = _client.GetChannel(id) as IVoiceChannel;
if (channel == null) return;
await channel.ModifyAsync(x =>
{
x.UserLimit = 5;
});
Properties
Bitrate
Gets or sets the bitrate of the voice connections in this channel. Must be greater than 8000.
public Optional<int> Bitrate { get; set; }
Property Value
RTCRegion
Gets or sets the channel voice region id, automatic when set to null.
public Optional<string> RTCRegion { get; set; }
Property Value
Topic
Gets or sets the topic of the channel.
public Optional<string> Topic { get; }
Property Value
Remarks
Not supported in voice channels
UserLimit
Gets or sets the maximum number of users that can be present in a channel, or null if none.
public Optional<int?> UserLimit { get; set; }
Property Value
VideoQualityMode
Get or sets the video quality mode for this channel.
public Optional<VideoQualityMode> VideoQualityMode { get; set; }