Table of Contents

Class CommandTypeParser<TContext>

Namespace
NetCord.Services.Commands
Assembly
NetCord.Services.dll
public abstract class CommandTypeParser<TContext> : CommandTypeReader<TContext> where TContext : ICommandContext

Type Parameters

TContext
Inheritance
CommandTypeParser<TContext>
Derived
Inherited Members

Constructors

CommandTypeParser()

protected CommandTypeParser()

Methods

ParseAsync(ReadOnlyMemory<char>, TContext, CommandParameter<TContext>, CommandServiceConfiguration<TContext>, IServiceProvider?)

public abstract ValueTask<CommandTypeParserResult> ParseAsync(ReadOnlyMemory<char> input, TContext context, CommandParameter<TContext> parameter, CommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)

Parameters

input ReadOnlyMemory<char>
context TContext
parameter CommandParameter<TContext>
configuration CommandServiceConfiguration<TContext>
serviceProvider IServiceProvider

Returns

ValueTask<CommandTypeParserResult>

ReadAsync(ReadOnlyMemory<char>, TContext, CommandParameter<TContext>, CommandServiceConfiguration<TContext>, IServiceProvider?)

public override sealed ValueTask<CommandTypeReaderResult> ReadAsync(ReadOnlyMemory<char> input, TContext context, CommandParameter<TContext> parameter, CommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)

Parameters

input ReadOnlyMemory<char>
context TContext
parameter CommandParameter<TContext>
configuration CommandServiceConfiguration<TContext>
serviceProvider IServiceProvider

Returns

ValueTask<CommandTypeReaderResult>