Options
All
  • Public
  • Public/Protected
  • All
Menu

Subcommand Group

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly _options

_options: [] | Subcommand[] = []

description

description: string

The description of the command.

name

name: string

The name of the command.

Readonly options

options: Map<string, Subcommand>

The mapped options. Used for easily finding options using option name.

Readonly type

type: 2 = 2

Accessors

rawData

  • get rawData(): { description: string; name: string; options: any[]; type: number }
  • The raw object for command data. Used to interact with discord.

    Returns { description: string; name: string; options: any[]; type: number }

    • description: string
    • name: string
    • options: any[]
    • type: number

Methods

execute

  • execute(interaction: CommandInteraction<CacheType>): void
  • The function to execute when command is called

    Parameters

    • interaction: CommandInteraction<CacheType>

      The command interaction object

    Returns void

Generated using TypeDoc