Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Channel

Hierarchy

Implements

  • ChannelData

Constructors

constructor

Properties

Readonly client

client: Client

createdAt

createdAt: number

Readonly id

id: string

lastMessage

lastMessage: MessagePreview

messageCount

messageCount: number

Optional messageDeletionMode

messageDeletionMode: string[]

Optional messageDeletionPeriod

messageDeletionPeriod: number

Readonly Abstract type

updatedAt

updatedAt: number

Methods

_clone

  • _clone(): any
  • Returns any

Abstract _patch

  • Parameters

    • data: any

    Returns Channel

Static _patch

  • Parameters

    • self: Channel
    • data: Partial<ChannelData>

    Returns Channel

Static dataFromChat

  • dataFromChat(data: APIChat): ChannelData
  • Parameters

    • data: APIChat

    Returns ChannelData

Static dataFromGroup

  • dataFromGroup(data: APIGroup): ChannelData
  • Parameters

    • data: APIGroup

    Returns ChannelData

Generated using TypeDoc