Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChatMessage

Hierarchy

Implements

  • ChatMessageInterface

Constructors

constructor

Properties

attachments

attachments: Attachment[]

channel

channel: Chat

Readonly client

client: Client

createdAt

createdAt: number

Readonly id

id: string

likes

likes: (string | User)[]

sourceGuid

sourceGuid: string

system

system: boolean

text

text: null | string

user

user: User

Accessors

canDelete

  • get canDelete(): boolean
  • Returns boolean

Methods

_clone

  • _clone(): any
  • Returns any

_patch

  • _patch(data: Partial<APIGroupMessage | APIChatMessage>): ChatMessage
  • Parameters

    • data: Partial<APIGroupMessage | APIChatMessage>

    Returns ChatMessage

delete

  • delete(): Promise<void>
  • Returns Promise<void>

fetch

like

reply

  • Parameters

    • message: string

    Returns Promise<Message<Chat>>

unlike

Generated using TypeDoc