Table of Contents

Class ExtensionMethods

Namespace
DSharpPlus.Commands
Assembly
DSharpPlus.Commands.dll

Extension methods used by the CommandsExtension for the DiscordClient.

public static class ExtensionMethods
Inheritance
object
ExtensionMethods

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.