You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
using Discord.Audio;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Discord
|
|
{
|
|
/// <summary>
|
|
/// Represents a generic audio channel.
|
|
/// </summary>
|
|
public interface IAudioChannel : IChannel
|
|
{
|
|
/// <summary>
|
|
/// Connects to this audio channel.
|
|
/// </summary>
|
|
/// <param name="selfDeaf">Determines whether the client should deaf itself upon connection.</param>
|
|
/// <param name="selfMute">Determines whether the client should mute itself upon connection.</param>
|
|
/// <param name="external">Determines whether the audio client is an external one or not.</param>
|
|
/// <returns>
|
|
/// A task representing the asynchronous connection operation. The task result contains the
|
|
/// <see cref="IAudioClient"/> responsible for the connection.
|
|
/// </returns>
|
|
Task<IAudioClient> ConnectAsync(bool selfDeaf = false, bool selfMute = false, bool external = false);
|
|
|
|
/// <summary>
|
|
/// Disconnects from this audio channel.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A task representing the asynchronous operation for disconnecting from the audio channel.
|
|
/// </returns>
|
|
Task DisconnectAsync();
|
|
}
|
|
}
|