Class CommandGroupInfo<TContext>
public class CommandGroupInfo<TContext> : ICommandInfo<TContext> where TContext : ICommandContext
Type Parameters
TContext
- Inheritance
-
CommandGroupInfo<TContext>
- Implements
-
ICommandInfo<TContext>
- Inherited Members
Properties
Aliases
public IReadOnlyList<string> Aliases { get; }
Property Value
Preconditions
public IReadOnlyList<PreconditionAttribute<TContext>> Preconditions { get; }
Property Value
- IReadOnlyList<PreconditionAttribute<TContext>>
Priority
public int Priority { get; }
Property Value
SubCommands
public IReadOnlyDictionary<ReadOnlyMemory<char>, IReadOnlyList<ICommandInfo<TContext>>> SubCommands { get; }
Property Value
- IReadOnlyDictionary<ReadOnlyMemory<char>, IReadOnlyList<ICommandInfo<TContext>>>
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
TContextconfiguration
CommandServiceConfiguration<TContext>serviceProvider
IServiceProvider