Table of Contents

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 DiscordClientBuilder

The builder to register to.

setup Action<CommandsNextExtension>

Any setup code you want to run on the extension, such as registering commands and converters.

configuration CommandsNextConfiguration

CommandsNext configuration to use.

Returns

DiscordClientBuilder

The same builder for chaining.