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