Interface IAudioChannel
Represents a generic audio channel.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface IAudioChannel : IChannel, ISnowflakeEntity, IEntity<ulong>
Methods​
ConnectAsync(Boolean, Boolean, Boolean)​
Connects to this audio channel.
View Source​
Declaration
Task<IAudioClient> ConnectAsync(bool selfDeaf = false, bool selfMute = false, bool external = false)
Returns​
System.Threading.Tasks.Task<Discord.Audio.IAudioClient>
:
A task representing the asynchronous connection operation. The task result contains the
Discord.Audio.IAudioClient responsible for the connection.
Parameters​
Type | Name | Description |
---|---|---|
System.Boolean | selfDeaf | Determines whether the client should deaf itself upon connection. |
System.Boolean | selfMute | Determines whether the client should mute itself upon connection. |
System.Boolean | external | Determines whether the audio client is an external one or not. |
DisconnectAsync()​
Disconnects from this audio channel.
View Source​
Declaration
Task DisconnectAsync()
Returns​
System.Threading.Tasks.Task
:
A task representing the asynchronous operation for disconnecting from the audio channel.