Class ModalComponentTypeConverter<T>
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Base class for creating ModalComponentTypeConverters. InteractionService uses ModalComponentTypeConverters to interface with Modal component parameters.
public abstract class ModalComponentTypeConverter<T> : ModalComponentTypeConverter
Type Parameters
T
- Inheritance
-
ModalComponentTypeConverter<T>
- Inherited Members
Methods
CanConvertTo(Type)
Will be used to search for alternative ModalComponentTypeConverters whenever the Interaction Service encounters an unknown parameter type.
public override sealed bool CanConvertTo(Type type)
Parameters
typeTypeType of the modal property.
Returns
- bool
Whether this converter can be used to handle the given type.