Class CommandGroup
Represents a command group.
Inherited Members
Namespace: DSharpPlus.CommandsNext
Assembly: cs.temp.dll.dll
Syntax
public class CommandGroup : Command
Properties
Children
Gets all the commands that belong to this module.
Declaration
public IReadOnlyList<Command> Children { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Command> |
IsExecutableWithoutSubcommands
Gets whether this command is executable without subcommands.
Declaration
public bool IsExecutableWithoutSubcommands { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ExecuteAsync(CommandContext)
Executes this command or its subcommand with specified context.
Declaration
public override 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. |