Represents a slash command that is being provided.

Hierarchy

  • ISlashCommand

Properties

command: string

The value which determines what the user types.

i18nDescription: string

i18n string for the description of the command.

i18nParamsExample: string

Example of the parameters or an i18n string.

permission?: string

Optional. Permission value required for the user to have to see/use it.

providesPreview: boolean

Lets the clients know that this command does provide preview results.

Methods

  • The function which gets called when a user enters the command.

    Note: This will not get called if a preview is defined and presented to the user and the user interacts with the preview. When that happens, the executePreviewItem function will be called.

    Parameters

    Returns Promise<void>

Generated using TypeDoc