Class ComponentTypeConverter<T>
Base class for creating Component TypeConverters. InteractionService uses TypeConverters to interface with Slash Command parameters.
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class ComponentTypeConverter<T> : ComponentTypeConverter, ITypeConverter<IComponentInteractionData>
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceCanConvertTo(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 | An object type. |
Returns
Type | Description |
---|---|
Boolean | The boolean result. |