Table of Contents

Class MessageCommandInfo<TContext>

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public class MessageCommandInfo<TContext> : ApplicationCommandInfo<TContext>, IApplicationCommandInfo where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
MessageCommandInfo<TContext>
Implements
Inherited Members

Properties

LocalizationPathSegment

public override LocalizationPathSegment LocalizationPathSegment { get; }

Property Value

LocalizationPathSegment

Preconditions

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

Property Value

IReadOnlyList<PreconditionAttribute<TContext>>

Methods

GetRawValueAsync(CancellationToken)

public override ValueTask<ApplicationCommandProperties> GetRawValueAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

ValueTask<ApplicationCommandProperties>

InvokeAsync(TContext, ApplicationCommandServiceConfiguration<TContext>, IServiceProvider?)

public override ValueTask<IExecutionResult> InvokeAsync(TContext context, ApplicationCommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)

Parameters

context TContext
configuration ApplicationCommandServiceConfiguration<TContext>
serviceProvider IServiceProvider

Returns

ValueTask<IExecutionResult>