Results

Namespace

Type

A text channel represents any channel on Discord that store messages.

The base methods available on this class are also available for all child classes.

Hierarchy

  • ITextChannel <-- You are here!

Implemented by

Index

Properties

Readonly type

type: Type

Methods

getMessage

  • getMessage(messageId: string): Promise<Message | null>
  • Attempts to fetch a single discord.Message (by id) from this channel.

    If no message is found, the Promise resolves as null.

    Parameters

    • messageId: string

      The id of the message you wish to fetch data for.

    Returns Promise<Message | null>

sendMessage

triggerTypingIndicator

  • triggerTypingIndicator(): Promise<void>
  • Triggers the *Username* is typing... message to appear near the text input box for users focused on the channel.

    The typing indicator will last up to 15 seconds, or until the bot user sends a message in the channel. Whatever comes first.

    Typically unused by bots, but can be used to indicate a command response is "loading" or "processing."

    Returns Promise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc