Table of Contents

Class ComponentTypeConverter<T>

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

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

public abstract class ComponentTypeConverter<T> : ComponentTypeConverter

Type Parameters

T
Inheritance
ComponentTypeConverter<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

An object type.

Returns

bool

The boolean result.