Table of Contents

Method RegisterCommands

Namespace
DSharpPlus.CommandsNext
Assembly
DSharpPlus.CommandsNext.dll

RegisterCommands(Assembly)

Registers all commands from a given assembly. The command classes need to be public to be considered for registration.

public void RegisterCommands(Assembly assembly)

Parameters

assembly Assembly

Assembly to register commands from.

RegisterCommands<T>()

Registers all commands from a given command class.

public void RegisterCommands<T>() where T : BaseCommandModule

Type Parameters

T

Class which holds commands to register.

RegisterCommands(Type)

Registers all commands from a given command class.

public void RegisterCommands(Type t)

Parameters

t Type

Type of the class which holds commands to register.

RegisterCommands(params CommandBuilder[])

Builds and registers all supplied commands.

public void RegisterCommands(params CommandBuilder[] cmds)

Parameters

cmds CommandBuilder[]

Commands to build and register.