Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a private message

Hierarchy

Index

Constructors

constructor

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

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.

toUser

toUser: string

The user this message was sent to

Methods

isOwnMessage

  • isOwnMessage(): boolean

reply

  • reply(message: string): Promise<void>
  • Sends a reply to the private message.

    Parameters

    • message: string

      The message

    Returns Promise<void>

toString

  • toString(): string

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