Method UseCommandsNext
- Namespace
- DSharpPlus.CommandsNext
- Assembly
- DSharpPlus.CommandsNext.dll
UseCommandsNext(DiscordClientBuilder, Action<CommandsNextExtension>, CommandsNextConfiguration)
Adds the CommandsNext extension to this DiscordClientBuilder.
public static DiscordClientBuilder UseCommandsNext(this DiscordClientBuilder builder, Action<CommandsNextExtension> setup, CommandsNextConfiguration configuration)
Parameters
builderDiscordClientBuilderThe builder to register to.
setupAction<CommandsNextExtension>Any setup code you want to run on the extension, such as registering commands and converters.
configurationCommandsNextConfigurationCommandsNext configuration to use.
Returns
- DiscordClientBuilder
The same builder for chaining.