Class TypeReader<T>
Base class for creating TypeConverters. InteractionService uses TypeConverters to interface with Slash Command parameters.
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class TypeReader<T> : TypeReader, ITypeConverter<string>
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceCanConvertTo(Type)
Will be used to search for alternative TypeReaders 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. |