hoshii / Exports / ForumTopicComment

ForumTopicComment

Represents a forum topic comment

Hierarchy

  • Base<number>

    ForumTopicComment

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ForumTopicComment(data, client)

Create a new ForumTopicComment

Parameters

NameTypeDescription
dataRawForumTopicCommentThe raw data of the forum topic comment
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/ForumTopicComment.ts:74open in new window

Properties

channelID

channelID: string

The ID of the channel the forum topic comment is in

Defined in

lib/structures/ForumTopicComment.ts:37open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

lib/structures/Base.ts:13open in new window


content

content: string

The content of the forum topic comment

Defined in

lib/structures/ForumTopicComment.ts:42open in new window


createdAt

createdAt: Date

The date the forum topic comment was created at

Defined in

lib/structures/ForumTopicComment.ts:47open in new window


createdBy

createdBy: string

The ID of the user who created the forum topic comment

Defined in

lib/structures/ForumTopicComment.ts:52open in new window


forumTopicID

forumTopicID: number

The ID of the forum topic the forum topic comment is in

Defined in

lib/structures/ForumTopicComment.ts:57open in new window


id

id: number

The ID of the item

Inherited from

Base.id

Defined in

lib/structures/Base.ts:16open in new window


mentions

Optional mentions: Mentions

The mentions in the forum topic comment

Defined in

lib/structures/ForumTopicComment.ts:62open in new window


updatedAt

Optional updatedAt: Date

The date the forum topic comment was updated at

Defined in

lib/structures/ForumTopicComment.ts:67open in new window

Methods

addReactionEmote

addReactionEmote(emoteID): Promise<void>

Add a reaction emote to the forum topic comment

Parameters

NameTypeDescription
emoteIDnumberThe ID of the emote

Returns

Promise<void>

Defined in

lib/structures/ForumTopicComment.ts:93open in new window


delete

delete(): Promise<void>

Delete the forum topic comment

Returns

Promise<void>

Defined in

lib/structures/ForumTopicComment.ts:106open in new window


deleteReactionEmote

deleteReactionEmote(emoteID): Promise<void>

Delete a reaction emote from the forum topic comment

Parameters

NameTypeDescription
emoteIDnumberThe ID of the emote

Returns

Promise<void>

Defined in

lib/structures/ForumTopicComment.ts:119open in new window


edit

edit(options): Promise<ForumTopicComment>

Edit the forum topic comment

Parameters

NameTypeDescription
optionsForumTopicCommentOptionsThe options to edit the forum topic comment with

Returns

Promise<ForumTopicComment>

Defined in

lib/structures/ForumTopicComment.ts:133open in new window


toJSON

toJSON(): ForumTopicCommentData

Returns the JSON representation of the item

Returns

ForumTopicCommentData

Overrides

Base.toJSON

Defined in

lib/structures/ForumTopicComment.ts:142open in new window


update

Protected update(data): void

Parameters

NameType
dataRawForumTopicComment

Returns

void

Overrides

Base.update

Defined in

lib/structures/ForumTopicComment.ts:155open in new window

Last Updated:
Contributors: Reinhardt