Class ExtensionMethods
- Namespace
- DSharpPlus.Commands
- Assembly
- DSharpPlus.Commands.dll
Extension methods used by the CommandsExtension for the DiscordClient.
public static class ExtensionMethods
- Inheritance
-
objectExtensionMethods
Methods
- AddCommandsExtension(IServiceCollection, Action<IServiceProvider, CommandsExtension>, CommandsConfiguration?)
Registers the commands extension with an IServiceCollection.
- AddCommandsExtension(IServiceCollection, Action<IServiceProvider, CommandsExtension>, Func<IServiceProvider, CommandsConfiguration>)
Registers the commands extension with an IServiceCollection.
- UseCommands(DiscordClientBuilder, Action<IServiceProvider, CommandsExtension>, CommandsConfiguration?)
Registers the extension with the DiscordClientBuilder.