Table of Contents

Method UseCommandsAsync

Namespace
DSharpPlus.Commands
Assembly
DSharpPlus.Commands.dll

UseCommandsAsync(DiscordShardedClient, CommandsConfiguration?)

Registers the extension with all the shards on the DiscordShardedClient.

public static Task<IReadOnlyDictionary<int, CommandsExtension>> UseCommandsAsync(this DiscordShardedClient shardedClient, CommandsConfiguration? configuration = null)

Parameters

shardedClient DiscordShardedClient

The client to register the extension with.

configuration CommandsConfiguration

The configuration to use for the extension.

Returns

Task<IReadOnlyDictionary<int, CommandsExtension>>