Skip to content
GitHub

CommandHandlerEntry

interface in meocord/core Since 4.1.0

interface CommandHandlerEntry extends HandlerEntryBase

A 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: CommandType

The CommandType the handler is declared with.

name

name: string

The command's name, or a subcommand's full path such as settings notify email.

command

command?: RESTPostAPIApplicationCommandsJSONBody

The registered command's JSON, the top-level command's for a subcommand.

description

description?: string

The command's description, a subcommand's own for a subcommand; undefined for a context menu command.

See also