Class CommandGroupInfo<TContext>
- Namespace
- NetCord.Services.Commands
- Assembly
- NetCord.Services.dll
public class CommandGroupInfo<TContext> : ICommandInfo<TContext> where TContext : ICommandContext
Type Parameters
TContext
- Inheritance
-
CommandGroupInfo<TContext>
- Implements
-
- 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>>
Preconditions
public IReadOnlyList<PreconditionAttribute<TContext>> Preconditions { get; }
Property Value
- IReadOnlyList<PreconditionAttribute<TContext>>
Priority
public int Priority { get; }
Property Value
- int
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 TContext
configuration CommandServiceConfiguration<TContext>
serviceProvider IServiceProvider
Returns
- ValueTask<CommandExecutionResult>