Table of Contents

Method ParseArgumentsAsync

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

ParseArgumentsAsync(InteractionConverterContext, InteractionCreatedEventArgs)

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

public override ValueTask<SlashCommandContext?> ParseArgumentsAsync(InteractionConverterContext converterContext, InteractionCreatedEventArgs eventArgs)

Parameters

converterContext InteractionConverterContext

The context used for the argument converters.

eventArgs InteractionCreatedEventArgs

The event args that sparked this command.

Returns

ValueTask<SlashCommandContext>

The prepared CommandContext.