Table of Contents

Interface IVoiceChannel

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a generic voice channel in a guild.

public interface IVoiceChannel : ITextChannel, IMessageChannel, IMentionable, INestedChannel, IIntegrationChannel, IGuildChannel, IDeletable, IAudioChannel, IChannel, ISnowflakeEntity, IEntity<ulong>
Inherited Members
Extension Methods

Properties

Bitrate

Gets the bit-rate that the clients in this voice channel are requested to use.

int Bitrate { get; }

Property Value

int

An int representing the bit-rate (bps) that this voice channel defines and requests the client(s) to use.

UserLimit

Gets the max number of users allowed to be connected to this channel at once.

int? UserLimit { get; }

Property Value

int?

An int representing the maximum number of users that are allowed to be connected to this channel at once; null if a limit is not set.

VideoQualityMode

Gets the video quality mode for this channel.

VideoQualityMode VideoQualityMode { get; }

Property Value

VideoQualityMode

Methods

ModifyAsync(Action<VoiceChannelProperties>, RequestOptions)

Modifies this voice channel.

Task ModifyAsync(Action<VoiceChannelProperties> func, RequestOptions options = null)

Parameters

func Action<VoiceChannelProperties>

The properties to modify the channel with.

options RequestOptions

The options to be used when sending the request.

Returns

Task

A task that represents the asynchronous modification operation.

See Also

SetStatusAsync(string, RequestOptions)

Sets the voice channel status in the current channel.

Task SetStatusAsync(string status, RequestOptions options = null)

Parameters

status string

The string to set as status.

options RequestOptions

The options to be used when sending the request.

Returns

Task

A task that represents the asynchronous modification operation.