Table of Contents

Method UseLavalinkAsync

Namespace
DSharpPlus.Lavalink
Assembly
DSharpPlus.Lavalink.dll

Creates new Lavalink clients on all shards in a given sharded client.

[Obsolete("DSharpPlus.Lavalink is deprecated for removal.", true)]
public static Task<IReadOnlyDictionary<int, LavalinkExtension>> UseLavalinkAsync(this DiscordShardedClient client)

Parameters

client DiscordShardedClient

Discord sharded client to create Lavalink instances for.

Returns

Task<IReadOnlyDictionary<int, LavalinkExtension>>

A dictionary of created Lavalink clients.