Class Channel

Represents a channel.

Hierarchy

Constructors

Properties

id: string

The type of this channel.

Accessors

  • get createdAt(): Date
  • Returns Date

  • get mention(): string
  • A string that will mention this channel.

    Returns string

Methods

  • Close a direct message, leave a group channel, or delete a guild channel.

    Returns Promise<void>

  • Returns JSONChannel

  • Returns string

  • Parameters

    • data: unknown

    Returns void

  • Type Parameters

    Parameters

    Returns T

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc