Table of Contents

Method UseCommandsNextAsync

Namespace
DisCatSharp.CommandsNext
Assembly
DisCatSharp.CommandsNext.dll

UseCommandsNextAsync(DiscordShardedClient, CommandsNextConfiguration)

Enables CommandsNext module on all shards in this DiscordShardedClient.

public static Task<IReadOnlyDictionary<int, CommandsNextExtension>> UseCommandsNextAsync(this DiscordShardedClient client, CommandsNextConfiguration cfg)

Parameters

client DiscordShardedClient

Client to enable CommandsNext for.

cfg CommandsNextConfiguration

CommandsNext configuration to use.

Returns

Task<IReadOnlyDictionary<int, CommandsNextExtension>>

A dictionary of created CommandsNextExtension, indexed by shard id.