Table of Contents

Class SubSlashCommandGroupInfo<TContext>

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public class SubSlashCommandGroupInfo<TContext> : ISubSlashCommandInfo<TContext>, IAutocompleteInfo where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
SubSlashCommandGroupInfo<TContext>
Implements
Inherited Members

Properties

Description

public string Description { get; }

Property Value

string

LocalizationPath

public ImmutableList<LocalizationPathSegment> LocalizationPath { get; }

Property Value

ImmutableList<LocalizationPathSegment>

LocalizationsProvider

public ILocalizationsProvider? LocalizationsProvider { get; }

Property Value

ILocalizationsProvider

Name

public string Name { get; }

Property Value

string

Preconditions

public IReadOnlyList<PreconditionAttribute<TContext>> Preconditions { get; }

Property Value

IReadOnlyList<PreconditionAttribute<TContext>>

SubCommands

public IReadOnlyDictionary<string, ISubSlashCommandInfo<TContext>> SubCommands { get; }

Property Value

IReadOnlyDictionary<string, ISubSlashCommandInfo<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