Search Results for

    Show / Hide Table of Contents

    Class CommandGroup

    Represents a command group.

    Inheritance
    System.Object
    Command
    CommandGroup
    Inherited Members
    Command.Name
    Command.QualifiedName
    Command.Aliases
    Command.Parent
    Command.Description
    Command.IsHidden
    Command.ExecutionChecks
    Command.Overloads
    Command.Module
    Command.CustomAttributes
    Command.RunChecksAsync(CommandContext, Boolean)
    Command.Equals(Object)
    Command.GetHashCode()
    Command.ToString()
    Namespace: DisCatSharp.CommandsNext
    Assembly: DisCatSharp.CommandsNext.dll
    Syntax
    public class CommandGroup : Command

    Properties

    | Improve this Doc View Source

    Children

    Gets all the commands that belong to this module.

    Declaration
    public IReadOnlyList<Command> Children { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<Command>
    | Improve this Doc View Source

    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 Source

    ExecuteAsync(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.

    Overrides
    Command.ExecuteAsync(CommandContext)

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems