Options
All
  • Public
  • Public/Protected
  • All
Menu

Command

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly _options

_options: (SubcommandGroup | Subcommand)[] | FieldType[] | [] = []

description

description: string

The description of the command.

name

name: string

The name of the command.

Readonly options

options: Map<string, SubcommandGroup | Subcommand | FieldType>

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

Readonly type

type: 1 = 1

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