Class ChatInputCommand

Represents a chat input command.

Hierarchy

  • Command
    • ChatInputCommand

Constructors

Properties

category: string

The category the command belongs to.

data: RESTPostAPIChatInputApplicationCommandsJSONBody

The slash command data of this command.

description: string

The description of the command.

disabled: boolean

Whether the command is disabled or not.

execute: ((this: ChatInputCommand, interaction: ChatInputCommandInteraction<CacheType>) => unknown)

Type declaration

id: string

The unique id of 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