Class SelectMenuCommand

Hierarchy

  • Command
    • SelectMenuCommand

Constructors

Properties

category: string

The category the command belongs to.

disabled: boolean

Whether the command should be ignored or not.

execute: ((this: SelectMenuCommand, interaction: AnySelectMenuInteraction, metadata: null | string) => unknown)

Type declaration

    • (this: SelectMenuCommand, interaction: AnySelectMenuInteraction, metadata: null | string): unknown
    • The function to run when the command is triggered.

      Parameters

      • this: SelectMenuCommand
      • interaction: AnySelectMenuInteraction

        The interaction that triggered the command.

      • metadata: null | string

        The part of the customId after the first "#".

      Returns unknown

id: string

A unique identifier for the command.

metadata: unknown

Additional metadata associated with the command.

name: string

The name of the command.

path: string

The file path of the command implementation.

Generated using TypeDoc