Interface SelectMenuCommandInterface

Hierarchy

  • CommandInterface
    • SelectMenuCommandInterface

Properties

category?: string

The category the command belongs to. If not provided the directory name is used.

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

metadata?: unknown

Additional metadata associated with the command.

name: string

The name of the command.

Generated using TypeDoc