Table of Contents

Method AddConverter

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

AddConverter<T>()

Registers a new argument converter with the processor.

public virtual void AddConverter<T>() where T : TConverter, new()

Type Parameters

T

The type that the converter converts to.

AddConverter<T>(TConverter)

Registers a new argument converter with the processor.

public virtual void AddConverter<T>(TConverter converter)

Parameters

converter TConverter

The converter to register.

Type Parameters

T

The type that the converter converts to.

AddConverter(Type, TConverter)

Registers a new argument converter with the processor.

public virtual void AddConverter(Type type, TConverter converter)

Parameters

type Type

The type that the converter converts to.

converter TConverter

The converter to register.

AddConverter(ConverterDelegateFactory)

Registers a new argument converter factory with the processor.

protected virtual void AddConverter(BaseCommandProcessor<TConverter, TConverterContext, TCommandContext>.ConverterDelegateFactory factory)

Parameters

factory BaseCommandProcessor<TConverter, TConverterContext, TCommandContext>.ConverterDelegateFactory

The factory that will create the argument converter and it's delegate.