Table of Contents

Class UserTypeReader<TContext>

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

Type Parameters

TContext
Inheritance
UserTypeReader<TContext>
Inherited Members

Constructors

UserTypeReader()

public UserTypeReader()

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>