Table of Contents

Class TypeConverter<T>

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Base class for creating TypeConverters. InteractionService uses TypeConverters to interface with Slash Command parameters.

public abstract class TypeConverter<T> : TypeConverter

Type Parameters

T
Inheritance
TypeConverter<T>
Inherited Members

Methods

CanConvertTo(Type)

Will be used to search for alternative TypeConverters whenever the Command Service encounters an unknown parameter type.

public override sealed bool CanConvertTo(Type type)

Parameters

type Type

Returns

bool