Represents a thread/topic coming from a "Forums" channel.

Hierarchy

Constructors

Properties

_createdAt: number

Timestamp (unix epoch time) of the thread's creation.

_updatedAt: null | number

Timestamp (unix epoch time) of when the thread got updated. (if updated)

bumpedAt: null | string

Timestamp (unix epoch time) that the forum thread was bumped at.

channelID: string

Forum channel id

client: Client

Bot's client.

content: string

Content of the thread

guildID: string

Guild/server id

id: string | number

Item ID

memberID: string

ID of the member who created the thread

mentions: null | APIMentions

Thread mentions

name: string

Thread name/title

title: string

Thread name/title

webhookID: null | string

ID of the webhook that created the thread (if created by webhook)

Accessors

  • get createdByWebhook(): boolean
  • Boolean that tells you if the forum thread was created by a webhook or not.

    Returns boolean

  • get member(): undefined | User | Member | Promise<Member>
  • Retrieve message's member, if cached. If there is no cached member or user, this will make a request which returns a Promise. If the request fails, this will throw an error or return you undefined as a value.

    Returns undefined | User | Member | Promise<Member>

Methods

  • Add a reaction to this forum thread.

    Parameters

    • emoteID: number

      ID of the emote to be added.

    Returns Promise<void>

  • Remove a reaction from this forum thread.

    Parameters

    • emoteID: number

      ID of the emote to be added.

    Returns Promise<void>