Table of Contents
API reference

Method UseLavalinkAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

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

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.