Table of Contents

Class ApplicationCommandServiceOptions<TInteraction, TContext>

Namespace
NetCord.Hosting.Services.ApplicationCommands
Assembly
NetCord.Hosting.Services.dll
public class ApplicationCommandServiceOptions<TInteraction, TContext> where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Type Parameters

TInteraction
TContext
Inheritance
ApplicationCommandServiceOptions<TInteraction, TContext>
Derived
Inherited Members

Constructors

ApplicationCommandServiceOptions()

public ApplicationCommandServiceOptions()

Properties

CreateContext

public Func<TInteraction, GatewayClient?, IServiceProvider, TContext>? CreateContext { get; set; }

Property Value

Func<TInteraction, GatewayClient, IServiceProvider, TContext>

DefaultContexts

public IEnumerable<InteractionContextType>? DefaultContexts { get; set; }

Property Value

IEnumerable<InteractionContextType>

DefaultDMPermission

public bool? DefaultDMPermission { get; set; }

Property Value

bool?

DefaultIntegrationTypes

public IEnumerable<ApplicationIntegrationType>? DefaultIntegrationTypes { get; set; }

Property Value

IEnumerable<ApplicationIntegrationType>

DefaultParameterDescriptionFormat

{0} - parameter name

public string? DefaultParameterDescriptionFormat { get; set; }

Property Value

string

EnumTypeReader

public SlashCommandTypeReader<TContext>? EnumTypeReader { get; set; }

Property Value

SlashCommandTypeReader<TContext>

LocalizationsProvider

public ILocalizationsProvider? LocalizationsProvider { get; set; }

Property Value

ILocalizationsProvider

ParameterNameProcessor

public ISlashCommandParameterNameProcessor<TContext>? ParameterNameProcessor { get; set; }

Property Value

ISlashCommandParameterNameProcessor<TContext>

ResultHandler

public IApplicationCommandResultHandler<TContext>? ResultHandler { get; set; }

Property Value

IApplicationCommandResultHandler<TContext>

ResultResolverProvider

public IResultResolverProvider<TContext>? ResultResolverProvider { get; set; }

Property Value

IResultResolverProvider<TContext>

TypeReaders

public Dictionary<Type, SlashCommandTypeReader<TContext>> TypeReaders { get; set; }

Property Value

Dictionary<Type, SlashCommandTypeReader<TContext>>

UseScopes

public bool? UseScopes { get; set; }

Property Value

bool?