Table of Contents

Method UseSimpleMusicCommandsAsync

Namespace
DisCatSharp.Extensions.SimpleMusicCommands
Assembly
DisCatSharp.Extensions.SimpleMusicCommands.dll

Enables SimpleMusicCommandsExtension module on all shards in this DiscordShardedClient.

public static Task<IReadOnlyDictionary<int, SimpleMusicCommandsExtension>> UseSimpleMusicCommandsAsync(this DiscordShardedClient client, LavalinkConfiguration? cfg = null)

Parameters

client DiscordShardedClient

Client to enable SimpleMusicCommandsExtension for.

cfg LavalinkConfiguration

Lavalink configuration to use.

Returns

Task<IReadOnlyDictionary<int, SimpleMusicCommandsExtension>>

A dictionary of created SimpleMusicCommandsExtension, indexed by shard id.