Table of Contents

Class ExtensionMethods

Namespace
DSharpPlus.VoiceLink
Assembly
DSharpPlus.VoiceLink.dll
public static class ExtensionMethods
Inheritance
ExtensionMethods
Inherited Members

Methods

Retrieves the VoiceLinkExtension from the DSharpPlus.DiscordClient.

public static VoiceLinkExtension GetVoiceLinkExtension(this DiscordClient client)

Parameters

client DiscordClient

The client to retrieve the extension from.

Returns

VoiceLinkExtension

Retrieves the VoiceLinkExtension from all of the shards on DSharpPlus.DiscordShardedClient.

public static IReadOnlyDictionary<int, VoiceLinkExtension> GetVoiceLinkExtensions(this DiscordShardedClient shardedClient)

Parameters

shardedClient DiscordShardedClient

The client to retrieve the extension from.

Returns

IReadOnlyDictionary<int, VoiceLinkExtension>

Registers the extension with the DSharpPlus.DiscordClient.

public static VoiceLinkExtension UseVoiceLink(this DiscordClient client, VoiceLinkConfiguration? configuration = null)

Parameters

client DiscordClient

The client to register the extension with.

configuration VoiceLinkConfiguration

The configuration to use for the extension.

Returns

VoiceLinkExtension

Registers the extension with all the shards on the DSharpPlus.DiscordShardedClient.

public static Task<IReadOnlyDictionary<int, VoiceLinkExtension>> UseVoiceLinkAsync(this DiscordShardedClient shardedClient, VoiceLinkConfiguration? configuration = null)

Parameters

shardedClient DiscordShardedClient

The client to register the extension with.

configuration VoiceLinkConfiguration

The configuration to use for the extension.

Returns

Task<IReadOnlyDictionary<int, VoiceLinkExtension>>