Class TypeConverter<T>
Base class for creating TypeConverters. InteractionService uses TypeConverters to interface with Slash Command parameters.
Inheritance
TypeConverter<T>
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class TypeConverter<T> : TypeConverter, ITypeConverter<IApplicationCommandInteractionDataOption>
Type Parameters
Methods
|
Improve this Doc
View Source
CanConvertTo(Type)
Will be used to search for alternative TypeConverters whenever the Command Service encounters an unknown parameter type.
Declaration
public sealed override bool CanConvertTo(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Overrides