Table of Contents

Interface ICommandInfo<TContext>

Namespace
NetCord.Services.Commands
Assembly
NetCord.Services.dll
public interface ICommandInfo<TContext> where TContext : ICommandContext

Type Parameters

TContext

Properties

Aliases

IReadOnlyList<string> Aliases { get; }

Property Value

IReadOnlyList<string>

Preconditions

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

Property Value

IReadOnlyList<PreconditionAttribute<TContext>>

Priority

int Priority { get; }

Property Value

int

Methods

InvokeAsync(ReadOnlyMemory<char>, TContext, CommandServiceConfiguration<TContext>, IServiceProvider?)

ValueTask<CommandExecutionResult> InvokeAsync(ReadOnlyMemory<char> arguments, TContext context, CommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)

Parameters

arguments ReadOnlyMemory<char>
context TContext
configuration CommandServiceConfiguration<TContext>
serviceProvider IServiceProvider

Returns

ValueTask<CommandExecutionResult>