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
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