Table of Contents

Class ConverterContext

Namespace
DSharpPlus.Commands.Converters
Assembly
DSharpPlus.Commands.dll

Represents context provided to argument converters.

public abstract record ConverterContext : AbstractContext
Inheritance
object
ConverterContext
Derived
Inherited Members

Properties

Argument

The value of the current raw argument.

Parameter

The current parameter.

ParameterIndex

The index of the current parameter.

VariadicArgumentAttribute

The current variadic-argument parameter.

VariadicArgumentParameterIndex

The current index of the variadic-argument parameter.

Methods

As<T>()

Short-hand for converting to a more specific converter context type.

NextArgument()

Advances to the next argument, returning a value indicating whether there was another argument.

NextParameter()

Advances to the next parameter, returning a value indicating whether there was another parameter.

NextVariadicArgument()

Increments the variadic-argument parameter index.