Method AddConverters
- Namespace
- DSharpPlus.Commands.Processors
- Assembly
- DSharpPlus.Commands.dll
AddConverters(Assembly)
Scans the specified assembly for argument converters and registers them with the processor. The argument converters will be created through the IServiceProvider provided to the CommandsExtension.
public virtual void AddConverters(Assembly assembly)Parameters
- assemblyAssembly
- The assembly to scan for argument converters. 
AddConverters(IEnumerable<Type>)
Adds multiple argument converters to the processor.
public virtual void AddConverters(IEnumerable<Type> types)Parameters
- typesIEnumerable<Type>
- The types to add as argument converters. 
Remarks
This method WILL NOT THROW if a converter is invalid. Instead, it will log an error and continue.