Options
All
  • Public
  • Public/Protected
  • All
Menu

Module api/commands

Index

Functions

  • registerCommands(caller: string, commands: Command[]): void
  • Register a new command in Discord.

    Parameters

    • caller: string

      Name of the caller.

    • commands: Command[]

      Commands to register.

    Returns void

  • unregisterCommands(caller: string): void
  • Remove all commands registered by a caller.

    Parameters

    • caller: string

      Name of the caller.

    Returns void

Generated using TypeDoc