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
builder
DiscordClientBuilderThe builder to register to.
setup
Action<CommandsNextExtension>Any setup code you want to run on the extension, such as registering commands and converters.
configuration
CommandsNextConfigurationCommandsNext configuration to use.
Returns
- DiscordClientBuilder
The same builder for chaining.