15 lines
509 B
C#
15 lines
509 B
C#
#nullable disable
|
|
|
|
namespace Ellie.Common.TypeReaders;
|
|
|
|
[MeansImplicitUse(ImplicitUseTargetFlags.Default | ImplicitUseTargetFlags.WithInheritors)]
|
|
public abstract class EllieTypeReader<T> : TypeReader
|
|
{
|
|
public abstract ValueTask<TypeReaderResult<T>> ReadAsync(ICommandContext ctx, string input);
|
|
|
|
public override async Task<Discord.Commands.TypeReaderResult> ReadAsync(
|
|
ICommandContext ctx,
|
|
string input,
|
|
IServiceProvider services)
|
|
=> await ReadAsync(ctx, input);
|
|
}
|