Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommandManager

Index

Methods

  • register(name: string | string[], handler: Handler, config?: Config): void
  • description

    Registrating a command. The actual command handler is registered on server to unlock the feature like permission based command or something, so it'd write a event on client and registered a handler on server to trigger the command from registered command in client.

    example
    registerCommand(
    'hello',
    (src, args) => console.log('Hello!'),
    {
    description: "Say Hello"
    }
    });

    Parameters

    Returns void

  • setDescription(name: string, config: Pick<Config, "description" | "argsDescription">): boolean

Generated using TypeDoc