Method RegisterCommands
- Namespace
- DisCatSharp.CommandsNext
- Assembly
- DisCatSharp.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
assemblyAssemblyAssembly to register commands from.
RegisterCommands<T>()
Registers all commands from a given command class.
public void RegisterCommands<T>() where T : BaseCommandModule
Type Parameters
TClass which holds commands to register.
RegisterCommands(Type)
Registers all commands from a given command class.
public void RegisterCommands(Type t)
Parameters
tTypeType of the class which holds commands to register.
RegisterCommands(params CommandBuilder[])
Builds and registers all supplied commands.
public void RegisterCommands(params CommandBuilder[] cmds)
Parameters
cmdsCommandBuilder[]Commands to build and register.