Class VoiceChannelProperties
Provides properties that are used to modify an IVoiceChannel with the specified changes.
Inherited Members
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class VoiceChannelProperties : TextChannelProperties
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
| Improve this Doc View SourceBitrate
Gets or sets the bitrate of the voice connections in this channel. Must be greater than 8000.
Declaration
public Optional<int> Bitrate { get; set; }
Property Value
Type | Description |
---|---|
Optional<Int32> |
RTCRegion
Gets or sets the channel voice region id, automatic when set to null.
Declaration
public Optional<string> RTCRegion { get; set; }
Property Value
Type | Description |
---|---|
Optional<String> |
Topic
Gets or sets the topic of the channel.
Declaration
public Optional<string> Topic { get; }
Property Value
Type | Description |
---|---|
Optional<String> |
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.
Declaration
public Optional<int?> UserLimit { get; set; }
Property Value
Type | Description |
---|---|
Optional<Nullable<Int32>> |
VideoQualityMode
Get or sets the video quality mode for this channel.
Declaration
public Optional<VideoQualityMode> VideoQualityMode { get; set; }
Property Value
Type | Description |
---|---|
Optional<VideoQualityMode> |