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
TConverterThe 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
TypeThe type that the converter converts to.
converter
TConverterThe 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>.ConverterDelegateFactoryThe factory that will create the argument converter and it's delegate.