Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Message

Represents an incoming message from the chat.

Hierarchy

Indexable

[key: string]: any

Represents an incoming message from the chat.

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Message(usr: IUser, mId?: undefined | string): Message
  • Create a message. Create a message.

    Parameters

    • usr: IUser
    • Optional mId: undefined | string

    Returns Message

Properties

id

id: string

Optional nlu

nlu: NLU

type

  • get type(): string

user

user: User

Methods

clone

  • clone(): any
  • Return a copy of message to alter without effecting original

    Returns any

Abstract toString

  • toString(): string
  • toString(): string
  • Returns string

  • String representation of the message.

    Returns string

Generated using TypeDoc