Table of Contents

Class ApplicationCommandServiceServiceCollectionExtensions

Namespace
NetCord.Hosting.Services.ApplicationCommands
Assembly
NetCord.Hosting.Services.dll
public static class ApplicationCommandServiceServiceCollectionExtensions
Inheritance
ApplicationCommandServiceServiceCollectionExtensions
Inherited Members

Methods

AddApplicationCommands<TInteraction, TContext>(IServiceCollection)

public static IServiceCollection AddApplicationCommands<TInteraction, TContext>(this IServiceCollection services) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

services IServiceCollection

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

AddApplicationCommands<TInteraction, TContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>)

public static IServiceCollection AddApplicationCommands<TInteraction, TContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

AddApplicationCommands<TInteraction, TContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext>>)

public static IServiceCollection AddApplicationCommands<TInteraction, TContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext>> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

AddApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IServiceCollection)

public static IServiceCollection AddApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IServiceCollection services) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

services IServiceCollection

Returns

IServiceCollection

Type Parameters

TInteraction
TContext
TAutocompleteContext

AddApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>)

public static IServiceCollection AddApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext
TAutocompleteContext

AddApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>)

public static IServiceCollection AddApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext
TAutocompleteContext

ConfigureApplicationCommands(IServiceCollection, Action<ApplicationCommandServiceOptions, IServiceProvider>)

public static IServiceCollection ConfigureApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions, IServiceProvider> configureOptions)

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions, IServiceProvider>

Returns

IServiceCollection

ConfigureApplicationCommands(IServiceCollection, Action<ApplicationCommandServiceOptions>)

public static IServiceCollection ConfigureApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions> configureOptions)

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions>

Returns

IServiceCollection

ConfigureApplicationCommands<TInteraction, TContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>)

public static IServiceCollection ConfigureApplicationCommands<TInteraction, TContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

ConfigureApplicationCommands<TInteraction, TContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext>>)

public static IServiceCollection ConfigureApplicationCommands<TInteraction, TContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext>> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

ConfigureApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>)

public static IServiceCollection ConfigureApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext
TAutocompleteContext

ConfigureApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IServiceCollection, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>)

public static IServiceCollection ConfigureApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IServiceCollection services, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext
TAutocompleteContext