Table of Contents

Class TextCommandProcessor

Namespace
DSharpPlus.Commands.Processors.TextCommands
Assembly
DSharpPlus.Commands.dll
public sealed class TextCommandProcessor : BaseCommandProcessor<MessageCreatedEventArgs, ITextArgumentConverter, TextConverterContext, TextCommandContext>, ICommandProcessor<MessageCreatedEventArgs>, ICommandProcessor
Inheritance
TextCommandProcessor
Implements
Inherited Members

Constructors

TextCommandProcessor()

Creates a new instance of TextCommandProcessor with the default configuration.

TextCommandProcessor(TextCommandConfiguration)

Creates a new instance of TextCommandProcessor with the specified configuration.

Fields

RequiredIntents

Properties

Commands

List of commands which are registered to this processor

Configuration

Methods

ConfigureAsync(CommandsExtension)

This method is called on initial setup and when the extension is refreshed. Register your needed event handlers here but use a mechanism to track if the inital setup was already done and if this call is only a refresh

CreateCommandContext(TextConverterContext, MessageCreatedEventArgs, Dictionary<CommandParameter, object?>)
ExecuteConverterAsync<T>(ITextArgumentConverter, TextConverterContext, MessageCreatedEventArgs)

Executes an argument converter on the specified context.

ExecuteTextCommandAsync(DiscordClient, MessageCreatedEventArgs)
ParseArgumentsAsync(TextConverterContext, MessageCreatedEventArgs)

Parses the arguments provided to the command and returns a prepared command context.

TryGetCommand(string, ulong, out int, out Command?)

Attempts to retrieve a command from the provided command text. Searches for the command by name, then by alias. Subcommands are also resolved. This method ignores DefaultGroupCommandAttribute's and will instead return the group command instead of the default subcommand.