Results

Namespace

Type

Hierarchy

Index

Methods

apply

  • apply(fn: function): this
  • A convince function to apply subcommands to a subcommand group in an isolated closure's scope.

    Parameters

    • fn: function
        • (commandGroup: this) => unknown
        • Parameters

          • commandGroup: this

          Returns unknown

    Returns this

register

registerGroup

  • registerGroup(config: ICommandGroupConfig): SlashCommandGroup
  • Registers a new nested sub-command group within the command group.

    Keep in mind the max sub-command group depth is 2. This means you can create a root command group and apply command groups on it.

    Parameters

    • config: ICommandGroupConfig

      The config for the new command group. name and description must be specified.

    Returns SlashCommandGroup

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc