Options
All
  • Public
  • Public/Protected
  • All
Menu

A abstract class that represents a message.

You will usually want to check if it's a instance of ChannelMessage or PrivateMessage.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Message(accountUser: User, fromUser: string, msg: string, t: number, id: string): Message

Properties

accountUser

accountUser: User

The user account related to this message.

fromUser

fromUser: string

The user that send the message.

id

id: string

The id of the message.

msg

msg: string

The message.

t

t: number

Unix timestamp in seconds.

Methods

isOwnMessage

  • isOwnMessage(): boolean
  • Wether this message is sent by the account user.

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc