Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISlashCommandsModify

This accessor provides methods for modifying existing Rocket.Chat slash commands. It is provided during "onEnable" of your App.

Hierarchy

  • ISlashCommandsModify

Index

Methods

disableSlashCommand

  • disableSlashCommand(command: string): Promise<void>
  • Renders an existing slash command un-usable.

    Parameters

    • command: string

      the command's usage without the slash

    Returns Promise<void>

enableSlashCommand

  • enableSlashCommand(command: string): Promise<void>
  • Enables an existing slash command to be usable again.

    Parameters

    • command: string

      the command's usage without the slash

    Returns Promise<void>

modifySlashCommand

  • Modifies an existing command. The command must either be your App's own command or a system command. One App can not modify another App's command.

    Parameters

    Returns Promise<void>

Generated using TypeDoc