Class ApplicationCommandService<TContext, TAutocompleteContext>
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public class ApplicationCommandService<TContext, TAutocompleteContext> : ApplicationCommandService<TContext>, IApplicationCommandService, IService where TContext : IApplicationCommandContext where TAutocompleteContext : IAutocompleteInteractionContext
Type Parameters
TContext
TAutocompleteContext
- Inheritance
-
ApplicationCommandService<TContext>ApplicationCommandService<TContext, TAutocompleteContext>
- Implements
- Inherited Members
Constructors
ApplicationCommandService(ApplicationCommandServiceConfiguration<TContext>?)
public ApplicationCommandService(ApplicationCommandServiceConfiguration<TContext>? configuration = null)
Parameters
configuration
ApplicationCommandServiceConfiguration<TContext>
Methods
ExecuteAutocompleteAsync(TAutocompleteContext, IServiceProvider?)
public ValueTask<IExecutionResult> ExecuteAutocompleteAsync(TAutocompleteContext context, IServiceProvider? serviceProvider = null)
Parameters
context
TAutocompleteContextserviceProvider
IServiceProvider