Method CreateCommandContext
- Namespace
- DSharpPlus.Commands.Processors.TextCommands
- Assembly
- DSharpPlus.Commands.dll
CreateCommandContext(TextConverterContext, IReadOnlyDictionary<CommandParameter, object?>)
Constructs a command context from the parsed arguments and the current state of the ConverterContext.
public override TextCommandContext CreateCommandContext(TextConverterContext converterContext, IReadOnlyDictionary<CommandParameter, object?> parsedArguments)
Parameters
converterContext
TextConverterContextThe context used for the argument converters.
parsedArguments
IReadOnlyDictionary<CommandParameter, object>The arguments successfully parsed by the argument converters.
Returns
- TextCommandContext
The constructed command context.