Class CommandGroup
Represents a command group.
Inherited Members
Namespace: DisCatSharp.CommandsNext
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public class CommandGroup : Command
Properties
| Improve this Doc View SourceChildren
Gets all the commands that belong to this module.
Declaration
public IReadOnlyList<Command> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Command> |
IsExecutableWithoutSubcommands
Gets whether this command is executable without subcommands.
Declaration
public bool IsExecutableWithoutSubcommands { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceExecuteAsync(CommandContext)
Executes this command or its subcommand with specified context.
Declaration
public override async Task<CommandResult> ExecuteAsync(CommandContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | ctx | Context to execute the command in. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CommandResult> | Command's execution results. |