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

Hierarchy

Constructors

Properties

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

createdAt: Date

When this forum thread was created.

editedTimestamp: null | Date

Timestamp at which this channel was last edited.

guildID: string

Guild/server id

id: string | number

Item ID

mentions: null | APIMentions

Thread mentions

name: string

Name of the thread

ownerID: string

The ID of the owner of this thread.

webhookID: null | string

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

Accessors

  • get owner(): undefined | User | Member | Promise<Member>
  • Retrieve thread's owner, 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>