Table of Contents

Interface IAudioChannel

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a generic audio channel.

public interface IAudioChannel : IChannel, ISnowflakeEntity, IEntity<ulong>
Inherited Members
Extension Methods

Properties

RTCRegion

Gets the RTC region for this audio channel.

string RTCRegion { get; }

Property Value

string

Remarks

This property can be null.

Methods

ConnectAsync(bool, bool, bool, bool)

Connects to this audio channel.

Task<IAudioClient> ConnectAsync(bool selfDeaf = false, bool selfMute = false, bool external = false, bool disconnect = true)

Parameters

selfDeaf bool

Determines whether the client should deaf itself upon connection.

selfMute bool

Determines whether the client should mute itself upon connection.

external bool

Determines whether the audio client is an external one or not.

disconnect bool

Determines whether the client should send a disconnect call before sending the new voice state.

Returns

Task<IAudioClient>

A task representing the asynchronous connection operation. The task result contains the IAudioClient responsible for the connection.

DisconnectAsync()

Disconnects from this audio channel.

Task DisconnectAsync()

Returns

Task

A task representing the asynchronous operation for disconnecting from the audio channel.

ModifyAsync(Action<AudioChannelProperties>, RequestOptions)

Modifies this audio channel.

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

Parameters

func Action<AudioChannelProperties>

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