Class GuildChannel

Represents a guild channel.

Hierarchy

Constructors

Properties

_cachedGuild?: any
_cachedParent?: any
guildID: string

The id of the guild this channel is in.

id: string
name: string

The name of this channel.

parentID: null | string

The ID of the parent of this channel, if applicable.

The type of this channel.

Accessors

  • get createdAt(): Date
  • Returns Date

  • get guild(): Guild
  • The guild associated with this channel. This will throw an error if the guild is not cached.

    Returns Guild

  • 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 string

  • Parameters

    Returns void

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc