Class SingleTypeReader<TContext>
- Namespace
- NetCord.Services.ApplicationCommands.TypeReaders
- Assembly
- NetCord.Services.dll
public class SingleTypeReader<TContext> : SlashCommandTypeReader<TContext> where TContext : IApplicationCommandContext
Type Parameters
TContext
- Inheritance
-
SlashCommandTypeReader<TContext>SingleTypeReader<TContext>
- Inherited Members
Constructors
SingleTypeReader()
public SingleTypeReader()
Properties
Type
public override ApplicationCommandOptionType Type { get; }
Property Value
Methods
GetMaxValue(SlashCommandParameter<TContext>, ApplicationCommandServiceConfiguration<TContext>)
public override double? GetMaxValue(SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration)
Parameters
parameter
SlashCommandParameter<TContext>configuration
ApplicationCommandServiceConfiguration<TContext>
Returns
GetMinValue(SlashCommandParameter<TContext>, ApplicationCommandServiceConfiguration<TContext>)
public override double? GetMinValue(SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration)
Parameters
parameter
SlashCommandParameter<TContext>configuration
ApplicationCommandServiceConfiguration<TContext>
Returns
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
stringcontext
TContextparameter
SlashCommandParameter<TContext>configuration
ApplicationCommandServiceConfiguration<TContext>serviceProvider
IServiceProvider