Table of Contents

Class ChannelTypeReader<TContext>

Namespace
NetCord.Services.ApplicationCommands.TypeReaders
Assembly
NetCord.Services.dll
public class ChannelTypeReader<TContext> : SlashCommandTypeReader<TContext> where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
ChannelTypeReader<TContext>
Derived
Inherited Members

Constructors

ChannelTypeReader()

public ChannelTypeReader()

Properties

Type

public override ApplicationCommandOptionType Type { get; }

Property Value

ApplicationCommandOptionType

Methods

ReadAsync(string, TContext, SlashCommandParameter<TContext>, ApplicationCommandServiceConfiguration<TContext>, IServiceProvider?)

public override ValueTask<TypeReaderResult> ReadAsync(string value, TContext context, SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)

Parameters

value string
context TContext
parameter SlashCommandParameter<TContext>
configuration ApplicationCommandServiceConfiguration<TContext>
serviceProvider IServiceProvider

Returns

ValueTask<TypeReaderResult>