Table of Contents

Class TypeReader<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 TypeReader<T> : TypeReader

Type Parameters

T
Inheritance
TypeReader<T>
Inherited Members

Methods

CanConvertTo(Type)

Will be used to search for alternative TypeReaders 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.