Class VoiceNextExtension
Represents VoiceNext extension, which acts as Discord voice client.
Inherited Members
Namespace: DisCatSharp.VoiceNext
Assembly: DisCatSharp.VoiceNext.dll
Syntax
public sealed class VoiceNextExtension : BaseExtension
Properties
| Improve this Doc View SourceIsIncomingEnabled
Gets whether this connection has incoming voice enabled.
Declaration
public bool IsIncomingEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceConnectAsync(DiscordChannel)
Create a VoiceNext connection for the specified channel.
Declaration
public async Task<VoiceNextConnection> ConnectAsync(DiscordChannel channel)
Parameters
Type | Name | Description |
---|---|---|
DiscordChannel | channel | Channel to connect to. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<VoiceNextConnection> | VoiceNext connection for this channel. |
GetConnection(DiscordGuild)
Gets a VoiceNext connection for specified guild.
Declaration
public VoiceNextConnection GetConnection(DiscordGuild guild)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuild | guild | Guild to get VoiceNext connection for. |
Returns
Type | Description |
---|---|
VoiceNextConnection | VoiceNext connection for the specified guild. |
Setup(DiscordClient)
DO NOT USE THIS MANUALLY.
Declaration
protected override void Setup(DiscordClient client)
Parameters
Type | Name | Description |
---|---|---|
DiscordClient | client | DO NOT USE THIS MANUALLY. |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException |