Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AppHandler<T> Abstract

Type Parameters

  • T

Hierarchy

Index

Constructors

Properties

Methods

Constructors

  • new AppHandler<T>(identify: string): AppHandler<T>
  • Set up the app handler.

    Type Parameters

    • T

    Parameters

    • identify: string

      what is the app handler called, used to distinguish between different app handlers

    Returns AppHandler<T>

Properties

$identify: string

What is the app handler called, used to distinguish between different app handlers.

Methods

  • apphandler(app: T): any
  • See example:

    const app = new Bot(...)
    const handler = new AppHandler(...)
    ...
    app.use(handler)

    app.use will call the function apphandler in the class handler.

    Parameters

    • app: T

      app instance

    Returns any

Generated using TypeDoc