Class ExtensionMethods
- Namespace
- DisCatSharp.CommandsNext
- Assembly
- DisCatSharp.CommandsNext.dll
Defines various extensions specific to CommandsNext.
public static class ExtensionMethods
- Inheritance
-
ExtensionMethods
- Inherited Members
Methods
- GetCommandsNext(DiscordClient)
Gets the active CommandsNext module for this client.
- GetCommandsNextAsync(DiscordShardedClient)
Gets the active CommandsNext modules for all shards in this client.
- RegisterCommands(IReadOnlyDictionary<int, CommandsNextExtension>, params CommandBuilder[])
Builds and registers all supplied commands.
- RegisterCommands(IReadOnlyDictionary<int, CommandsNextExtension>, Assembly)
Registers all commands from a given assembly. The command classes need to be public to be considered for registration.
- RegisterCommands(IReadOnlyDictionary<int, CommandsNextExtension>, Type)
Registers all commands from a given command class.
- RegisterCommands<T>(IReadOnlyDictionary<int, CommandsNextExtension>)
Registers all commands from a given command class.
- RegisterConverter<T>(IReadOnlyDictionary<int, CommandsNextExtension>, IArgumentConverter<T>)
Registers an argument converter for specified type.
- RegisterUserFriendlyTypeName<T>(IReadOnlyDictionary<int, CommandsNextExtension>, string)
Registers a user-friendly type name.
- SetHelpFormatter<T>(IReadOnlyDictionary<int, CommandsNextExtension>)
Sets the help formatter to use with the default help command.
- UnregisterCommands(IReadOnlyDictionary<int, CommandsNextExtension>, params Command[])
Unregisters specified commands from CommandsNext.
- UnregisterConverter<T>(IReadOnlyDictionary<int, CommandsNextExtension>)
Unregisters an argument converter for specified type.
- UseCommandsNext(DiscordClient, CommandsNextConfiguration)
Enables CommandsNext module on this DiscordClient.
- UseCommandsNextAsync(DiscordShardedClient, CommandsNextConfiguration)
Enables CommandsNext module on all shards in this DiscordShardedClient.