Method AddCommandsNextExtension
- Namespace
- DSharpPlus.CommandsNext
- Assembly
- DSharpPlus.CommandsNext.dll
AddCommandsNextExtension(IServiceCollection, Action<CommandsNextExtension>, CommandsNextConfiguration)
Adds the CommandsNext extension to this service collection.
public static IServiceCollection AddCommandsNextExtension(this IServiceCollection services, Action<CommandsNextExtension> setup, CommandsNextConfiguration configuration)
Parameters
services
IServiceCollectionThe service collection 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
- IServiceCollection
The same service collection for chaining.