Interface ChatInputCommandInterface

Represents the structure of a chat input command.

Hierarchy

  • CommandInterface
    • ChatInputCommandInterface

Properties

category?: string

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

data: SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder | Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">

The slash command data of this command.

disabled?: boolean

Whether the command should be ignored or not.

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

Type declaration

metadata?: unknown

Additional metadata associated with the command.

Generated using TypeDoc