Table of Contents

Class Int16TypeReader<TContext>

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

Type Parameters

TContext
Inheritance
Int16TypeReader<TContext>
Inherited Members

Constructors

Int16TypeReader()

public Int16TypeReader()

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>