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
-
CommandTypeReader<TContext>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
TextChannelinput
ReadOnlySpan<char>
Returns
Type Parameters
T
GetGuildChannel<T>(Guild, ReadOnlySpan<char>)
protected TypeReaderResult GetGuildChannel<T>(Guild guild, ReadOnlySpan<char> input)
Parameters
guild
Guildinput
ReadOnlySpan<char>
Returns
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
TContextparameter
CommandParameter<TContext>configuration
CommandServiceConfiguration<TContext>serviceProvider
IServiceProvider