Table of Contents

Method CreateCommandContext

Namespace
DSharpPlus.Commands.Processors
Assembly
DSharpPlus.Commands.dll

CreateCommandContext(TConverterContext, IReadOnlyDictionary<CommandParameter, object?>)

Constructs a command context from the parsed arguments and the current state of the ConverterContext.

public abstract TCommandContext CreateCommandContext(TConverterContext converterContext, IReadOnlyDictionary<CommandParameter, object?> parsedArguments)

Parameters

converterContext TConverterContext

The context used for the argument converters.

parsedArguments IReadOnlyDictionary<CommandParameter, object>

The arguments successfully parsed by the argument converters.

Returns

TCommandContext

The constructed command context.