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
DiscordShardedClientThe client to register the extension with.
configuration
CommandsConfigurationThe configuration to use for the extension.