Class Message

Constructors

Properties

author: User
client: Client
content: string
currentEdit: number = 0
date: Date
deleted: boolean
edited: boolean
edits: string[] = []
id: number
mentions: string[]
room: Room

Methods

  • Parameters

    • content: string

    Returns Promise<void>

  • Returns Promise<void>

  • reply - Reply to the message.

    Parameters

    • content: string

      The content of the message

    • bad: boolean = false

      If this is true, the message will be sent using Blacket's annoying "reply" system, if false, it will be sent by just mentioning the user and appending the content.

    Returns Promise<Message>