Class ApplicationCommandServiceServiceCollectionExtensions
- Namespace
- NetCord.Hosting.Services.ApplicationCommands
- Assembly
- NetCord.Hosting.Services.dll
public static class ApplicationCommandServiceServiceCollectionExtensions
- Inheritance
-
ApplicationCommandServiceServiceCollectionExtensions
- Inherited Members
-
Methods
AddApplicationCommands(IServiceCollection)
public static IServiceCollection AddApplicationCommands(this IServiceCollection services)
Parameters
services
IServiceCollection
Returns
- IServiceCollection
AddApplicationCommands(IServiceCollection, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, ApplicationCommandContext, AutocompleteInteractionContext>, IServiceProvider>)
public static IServiceCollection AddApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, ApplicationCommandContext, AutocompleteInteractionContext>, IServiceProvider> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, ApplicationCommandContext, AutocompleteInteractionContext>, IServiceProvider>
Returns
- IServiceCollection
AddApplicationCommands(IServiceCollection, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, ApplicationCommandContext, AutocompleteInteractionContext>>)
public static IServiceCollection AddApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, ApplicationCommandContext, AutocompleteInteractionContext>> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, ApplicationCommandContext, AutocompleteInteractionContext>>
Returns
- IServiceCollection
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
AddHttpApplicationCommands(IServiceCollection)
public static IServiceCollection AddHttpApplicationCommands(this IServiceCollection services)
Parameters
services
IServiceCollection
Returns
- IServiceCollection
AddHttpApplicationCommands(IServiceCollection, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, HttpApplicationCommandContext, HttpAutocompleteInteractionContext>, IServiceProvider>)
public static IServiceCollection AddHttpApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, HttpApplicationCommandContext, HttpAutocompleteInteractionContext>, IServiceProvider> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, HttpApplicationCommandContext, HttpAutocompleteInteractionContext>, IServiceProvider>
Returns
- IServiceCollection
AddHttpApplicationCommands(IServiceCollection, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, HttpApplicationCommandContext, HttpAutocompleteInteractionContext>>)
public static IServiceCollection AddHttpApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, HttpApplicationCommandContext, HttpAutocompleteInteractionContext>> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<ApplicationCommandServiceOptions<ApplicationCommandInteraction, HttpApplicationCommandContext, HttpAutocompleteInteractionContext>>
Returns
- IServiceCollection
public static IServiceCollection ConfigureApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions, IServiceProvider> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<ApplicationCommandServiceOptions, IServiceProvider>
Returns
- IServiceCollection
public static IServiceCollection ConfigureApplicationCommands(this IServiceCollection services, Action<ApplicationCommandServiceOptions> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<ApplicationCommandServiceOptions>
Returns
- IServiceCollection
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
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
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
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