Table of Contents

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
Int32TypeReader<TContext>
Inherited Members

Constructors

Int32TypeReader()

public Int32TypeReader()

Properties

Type

public override ApplicationCommandOptionType Type { get; }

Property Value

ApplicationCommandOptionType

Methods

GetMaxValue(SlashCommandParameter<TContext>, ApplicationCommandServiceConfiguration<TContext>)

public override double? GetMaxValue(SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration)

Parameters

parameter SlashCommandParameter<TContext>
configuration ApplicationCommandServiceConfiguration<TContext>

Returns

double?

GetMinValue(SlashCommandParameter<TContext>, ApplicationCommandServiceConfiguration<TContext>)

public override double? GetMinValue(SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration)

Parameters

parameter SlashCommandParameter<TContext>
configuration ApplicationCommandServiceConfiguration<TContext>

Returns

double?

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>