Table of Contents

Method RegisterConverter

Namespace
DisCatSharp.CommandsNext
Assembly
DisCatSharp.CommandsNext.dll

RegisterConverter<T>(IReadOnlyDictionary<int, CommandsNextExtension>, IArgumentConverter<T>)

Registers an argument converter for specified type.

public static void RegisterConverter<T>(this IReadOnlyDictionary<int, CommandsNextExtension> extensions, IArgumentConverter<T> converter)

Parameters

extensions IReadOnlyDictionary<int, CommandsNextExtension>

Extensions to register the converter on.

converter IArgumentConverter<T>

Converter to register.

Type Parameters

T

Type for which to register the converter.