Class UserCommandInfo<TContext>
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public class UserCommandInfo<TContext> : ApplicationCommandInfo<TContext>, IApplicationCommandInfo where TContext : IApplicationCommandContext
Type Parameters
TContext
- Inheritance
-
ApplicationCommandInfo<TContext>UserCommandInfo<TContext>
- Implements
- Inherited Members
Properties
LocalizationPathSegment
public override LocalizationPathSegment LocalizationPathSegment { get; }
Property Value
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
InvokeAsync(TContext, ApplicationCommandServiceConfiguration<TContext>, IServiceProvider?)
public override ValueTask<IExecutionResult> InvokeAsync(TContext context, ApplicationCommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)
Parameters
context
TContextconfiguration
ApplicationCommandServiceConfiguration<TContext>serviceProvider
IServiceProvider