Table of Contents

Class CommandInfo<TContext>

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

Type Parameters

TContext
Inheritance
CommandInfo<TContext>
Implements
ICommandInfo<TContext>
Inherited Members

Properties

Aliases

public IReadOnlyList<string> Aliases { get; }

Property Value

IReadOnlyList<string>

Attributes

public IReadOnlyDictionary<Type, IReadOnlyList<Attribute>> Attributes { get; }

Property Value

IReadOnlyDictionary<Type, IReadOnlyList<Attribute>>

Parameters

public IReadOnlyList<CommandParameter<TContext>> Parameters { get; }

Property Value

IReadOnlyList<CommandParameter<TContext>>

Preconditions

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

Property Value

IReadOnlyList<PreconditionAttribute<TContext>>

Priority

public int Priority { get; }

Property Value

int

Methods

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

public 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>