Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DMChannel

Represents a private channel between the Bot and a User

Hierarchy

Implements

Index

Constructors

constructor

Properties

bot

bot: Bot

The Bot operating this structure

id

The ID of this channel

lastMessageId

lastMessageId: Snowflake | null | undefined

The ID of the last message sent in this channel. May not point to an existing or valid message

messages

The text channel's messages controller

pins

The text channel's pinned messages controller

recipient

recipient: User

The recipient of the DM

type

The type of this channel

Methods

clone

  • clone(): this

delete

sendMessage

triggerTyping

  • triggerTyping(): Promise<void>
  • Posts a typing indicator for a specified text channel. Useful when the bot is responding to a command and expects the computation to take a few seconds. This method may be called to let the user know that the bot is processing their message.

    Returns Promise<void>

update

Generated using TypeDoc