Class VoiceNextExtension
Represents VoiceNext extension, which acts as Discord voice client.
Inherited Members
Namespace: DSharpPlus.VoiceNext
Assembly: cs.temp.dll.dll
Syntax
public sealed class VoiceNextExtension : BaseExtension
Properties
IsIncomingEnabled
Gets whether this connection has incoming voice enabled.
Declaration
public bool IsIncomingEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ConnectAsync(DiscordChannel)
Create a VoiceNext connection for the specified channel.
Declaration
public 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. |