Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DMChannel<T>

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Properties

Readonly client

client: T

deleted

deleted: boolean = false

Whether the DM channel is deleted.

since

0.0.1

Readonly id

id: string

The ID of this channel.

since

0.0.1

lastMessageID

lastMessageID: string | null

The id of the last message sent in this channel (may not point to an existing or valid message).

since

0.0.1

Readonly messages

messages: MessageStore

The message store for this channel.

since

0.0.1

Readonly pins

The pins store for this channel.

since

0.0.4

recipients

recipients: User[]

The recipients of the DM.

since

0.0.1

Readonly type

type: DM = ChannelType.DM

Readonly typing

typing: Typing

The typing handler for this channel.

since

0.0.1

Accessors

attachable

  • get attachable(): boolean

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

embedable

  • get embedable(): boolean

postable

  • get postable(): boolean

Methods

Protected _patch

  • _patch(data: APIChannelData): this

awaitMessages

clone

  • clone(): this

delete

  • delete(requestOptions?: RequestOptions): Promise<this>

send

toJSON

  • toJSON(): Record<string, any>

toString

  • toString(): string

valueOf

  • valueOf(): string

Static create

  • create(client: Client, data: APIChannelData, ...extra: keyof unknown[]): Channel | null

Generated using TypeDoc