Table of Contents

Class SlashCommandTypeReader<TContext>

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

Type Parameters

TContext
Inheritance
SlashCommandTypeReader<TContext>
Derived
Inherited Members

Constructors

SlashCommandTypeReader()

protected SlashCommandTypeReader()

Properties

AllowedChannelTypes

public virtual IEnumerable<ChannelType>? AllowedChannelTypes { get; }

Property Value

IEnumerable<ChannelType>

AutocompleteProviderType

public virtual Type? AutocompleteProviderType { get; }

Property Value

Type

ChoicesProvider

public virtual IChoicesProvider<TContext>? ChoicesProvider { get; }

Property Value

IChoicesProvider<TContext>

Type

public abstract ApplicationCommandOptionType Type { get; }

Property Value

ApplicationCommandOptionType

Methods

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

public virtual int? GetMaxLength(SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration)

Parameters

parameter SlashCommandParameter<TContext>
configuration ApplicationCommandServiceConfiguration<TContext>

Returns

int?

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

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

Parameters

parameter SlashCommandParameter<TContext>
configuration ApplicationCommandServiceConfiguration<TContext>

Returns

double?

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

public virtual int? GetMinLength(SlashCommandParameter<TContext> parameter, ApplicationCommandServiceConfiguration<TContext> configuration)

Parameters

parameter SlashCommandParameter<TContext>
configuration ApplicationCommandServiceConfiguration<TContext>

Returns

int?

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

public virtual 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 abstract 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>