Class SubSlashCommandInfo<TContext>
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public class SubSlashCommandInfo<TContext> : ISubSlashCommandInfo<TContext>, IAutocompleteInfo where TContext : IApplicationCommandContext
Type Parameters
TContext
- Inheritance
-
SubSlashCommandInfo<TContext>
- Implements
-
- Inherited Members
-
Properties
Description
public string Description { get; }
Property Value
- string
LocalizationsPath
public ImmutableList<LocalizationPathSegment> LocalizationsPath { get; }
Property Value
- ImmutableList<LocalizationPathSegment>
LocalizationsProvider
public ILocalizationsProvider? LocalizationsProvider { get; }
Property Value
- ILocalizationsProvider
Name
public string Name { get; }
Property Value
- string
Parameters
public IReadOnlyList<SlashCommandParameter<TContext>> Parameters { get; }
Property Value
- IReadOnlyList<SlashCommandParameter<TContext>>
ParametersDictionary
public IReadOnlyDictionary<string, SlashCommandParameter<TContext>> ParametersDictionary { get; }
Property Value
- IReadOnlyDictionary<string, SlashCommandParameter<TContext>>
Preconditions
public IReadOnlyList<PreconditionAttribute<TContext>> Preconditions { get; }
Property Value
- IReadOnlyList<PreconditionAttribute<TContext>>
Methods
GetRawValueAsync(CancellationToken)
public ValueTask<ApplicationCommandOptionProperties> GetRawValueAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- ValueTask<ApplicationCommandOptionProperties>
InvokeAsync(TContext, IReadOnlyList<ApplicationCommandInteractionDataOption>, ApplicationCommandServiceConfiguration<TContext>, IServiceProvider?)
public ValueTask<IExecutionResult> InvokeAsync(TContext context, IReadOnlyList<ApplicationCommandInteractionDataOption> options, ApplicationCommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)
Parameters
context
TContext
options
IReadOnlyList<ApplicationCommandInteractionDataOption>
configuration
ApplicationCommandServiceConfiguration<TContext>
serviceProvider
IServiceProvider
Returns
- ValueTask<IExecutionResult>
InvokeAutocompleteAsync<TAutocompleteContext>(TAutocompleteContext, IReadOnlyList<ApplicationCommandInteractionDataOption>, IServiceProvider?)
public ValueTask<IExecutionResult> InvokeAutocompleteAsync<TAutocompleteContext>(TAutocompleteContext context, IReadOnlyList<ApplicationCommandInteractionDataOption> options, IServiceProvider? serviceProvider) where TAutocompleteContext : IAutocompleteInteractionContext
Parameters
context
TAutocompleteContext
options
IReadOnlyList<ApplicationCommandInteractionDataOption>
serviceProvider
IServiceProvider
Returns
- ValueTask<IExecutionResult>
Type Parameters
TAutocompleteContext