Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Message<T>

Type parameters

Hierarchy

Implements

  • MessageInterface<T>

Constructors

constructor

  • new Message<T>(client: Client, channel: T, data: APIGroupMessage | APIChatMessage): Message<T>
  • Type parameters

    Parameters

    • client: Client
    • channel: T
    • data: APIGroupMessage | APIChatMessage

    Returns Message<T>

Properties

attachments

attachments: Attachment[]

channel

channel: T

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>): Message<T>
  • Parameters

    • data: Partial<APIGroupMessage | APIChatMessage>

    Returns Message<T>

delete

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

fetch

  • Returns Promise<Message<T>>

like

  • Returns Promise<Message<T>>

reply

  • reply(message: string): Promise<Message<T>>
  • Parameters

    • message: string

    Returns Promise<Message<T>>

unlike

  • Returns Promise<Message<T>>

Generated using TypeDoc