Table of Contents

Class ChannelTypeReader<TContext>

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

Type Parameters

TContext
Inheritance
ChannelTypeReader<TContext>
Derived
Inherited Members

Constructors

ChannelTypeReader()

public ChannelTypeReader()

Methods

GetChannel<T>(TextChannel, ReadOnlySpan<char>)

protected TypeReaderResult GetChannel<T>(TextChannel channel, ReadOnlySpan<char> input)

Parameters

channel TextChannel
input ReadOnlySpan<char>

Returns

TypeReaderResult

Type Parameters

T

GetGuildChannel<T>(Guild, ReadOnlySpan<char>)

protected TypeReaderResult GetGuildChannel<T>(Guild guild, ReadOnlySpan<char> input)

Parameters

guild Guild
input ReadOnlySpan<char>

Returns

TypeReaderResult

Type Parameters

T

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

public override ValueTask<TypeReaderResult> 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<TypeReaderResult>