CommandHandlerEntry
interface in meocord/core Since 4.1.0
interface CommandHandlerEntry extends HandlerEntryBaseA registered slash command, subcommand, context menu command or entry point command, as the registry lists it.
Members
kind
kind: 'command'Marks a command, so kind narrows a HandlerEntry to this type.
commandType
commandType: CommandTypeThe CommandType the handler is declared with.
name
name: stringThe command's name, or a subcommand's full path such as settings notify email.
command
command?: RESTPostAPIApplicationCommandsJSONBodyThe registered command's JSON, the top-level command's for a subcommand.
description
description?: stringThe command's description, a subcommand's own for a subcommand; undefined for a context menu command.