Class Int32TypeReader<TContext>
- Namespace
- NetCord.Services.ApplicationCommands.TypeReaders
- Assembly
- NetCord.Services.dll
public class Int32TypeReader<TContext> : SlashCommandTypeReader<TContext> where TContext : IApplicationCommandContext
Type Parameters
TContext
- Inheritance
-
SlashCommandTypeReader<TContext>Int32TypeReader<TContext>
- Inherited Members
Constructors
Int32TypeReader()
public Int32TypeReader()
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