Method UseCommands
- Namespace
- DSharpPlus.Commands
- Assembly
- DSharpPlus.Commands.dll
UseCommands(DiscordClientBuilder, Action<IServiceProvider, CommandsExtension>, CommandsConfiguration?)
Registers the extension with the DiscordClientBuilder.
public static DiscordClientBuilder UseCommands(this DiscordClientBuilder builder, Action<IServiceProvider, CommandsExtension> setup, CommandsConfiguration? configuration = null)Parameters
- builderDiscordClientBuilder
- The client builder to register the extension with. 
- setupAction<IServiceProvider, CommandsExtension>
- Any setup code you want to run on the extension, such as registering commands and converters. 
- configurationCommandsConfiguration
- The configuration to use for the extension.