Table of Contents

Method GetConverter

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

GetConverter(IServiceProvider)

Creates and caches the converter instance if it hasn't been created yet.

public TConverter GetConverter(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The service provider to use for creating the converter instance, if needed.

Returns

TConverter

The converter instance.