Table of Contents

Class ApplicationCommandServiceHostBuilderExtensions

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

Methods

ConfigureApplicationCommands(IHostBuilder, Action<ApplicationCommandServiceOptions, IServiceProvider>)

public static IHostBuilder ConfigureApplicationCommands(this IHostBuilder builder, Action<ApplicationCommandServiceOptions, IServiceProvider> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions, IServiceProvider>

Returns

IHostBuilder

ConfigureApplicationCommands(IHostBuilder, Action<ApplicationCommandServiceOptions>)

public static IHostBuilder ConfigureApplicationCommands(this IHostBuilder builder, Action<ApplicationCommandServiceOptions> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions>

Returns

IHostBuilder

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

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

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

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

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

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

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

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

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext
TAutocompleteContext

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

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

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext
TAutocompleteContext

UseApplicationCommands<TInteraction, TContext>(IHostBuilder)

public static IHostBuilder UseApplicationCommands<TInteraction, TContext>(this IHostBuilder builder) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

builder IHostBuilder

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

UseApplicationCommands<TInteraction, TContext>(IHostBuilder, Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>)

public static IHostBuilder UseApplicationCommands<TInteraction, TContext>(this IHostBuilder builder, Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

UseApplicationCommands<TInteraction, TContext>(IHostBuilder, Action<ApplicationCommandServiceOptions<TInteraction, TContext>>)

public static IHostBuilder UseApplicationCommands<TInteraction, TContext>(this IHostBuilder builder, Action<ApplicationCommandServiceOptions<TInteraction, TContext>> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext>>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

UseApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IHostBuilder)

public static IHostBuilder UseApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IHostBuilder builder) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

builder IHostBuilder

Returns

IHostBuilder

Type Parameters

TInteraction
TContext
TAutocompleteContext

UseApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IHostBuilder, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>)

public static IHostBuilder UseApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IHostBuilder builder, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>, IServiceProvider>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext
TAutocompleteContext

UseApplicationCommands<TInteraction, TContext, TAutocompleteContext>(IHostBuilder, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>)

public static IHostBuilder UseApplicationCommands<TInteraction, TContext, TAutocompleteContext>(this IHostBuilder builder, Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>> configureOptions) where TInteraction : ApplicationCommandInteraction where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext

Parameters

builder IHostBuilder
configureOptions Action<ApplicationCommandServiceOptions<TInteraction, TContext, TAutocompleteContext>>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext
TAutocompleteContext