Represents a comment coming from a ForumThread.

Hierarchy (View Summary)

  • Base<number>
    • ForumThreadComment

Constructors

  • Parameters

    • data: {
          channelId: string;
          content: string;
          createdAt: string;
          createdBy: string;
          forumTopicId: number;
          id: number;
          mentions?: {
              channels?: { id: string }[];
              everyone?: boolean;
              here?: boolean;
              roles?: { id: number }[];
              users?: { id: string }[];
          };
          updatedAt?: string;
      }
      • channelId: string

        Channel ID Format: uuid

        The ID of the channel

      • content: string

        Content Format: long-form markdown

        The content of the forum topic comment

      • createdAt: string

        Created at Format: date-time

        The ISO 8601 timestamp that the forum topic comment was created at

      • createdBy: string

        Created by

        The ID of the user who created this forum topic comment (Note: If this event has createdByWebhookId present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)

      • forumTopicId: number

        The ID of the forum topic

      • id: number

        The ID of the forum topic comment

      • Optionalmentions?: {
            channels?: { id: string }[];
            everyone?: boolean;
            here?: boolean;
            roles?: { id: number }[];
            users?: { id: string }[];
        }
        • Optionalchannels?: { id: string }[]

          Channels

          Info on mentioned channels

        • Optionaleveryone?: boolean

          Everyone

          If

          was mentioned

        • Optionalhere?: boolean

          Here

          If

          was mentioned

        • Optionalroles?: { id: number }[]

          Roles

          Info on mentioned roles

        • Optionalusers?: { id: string }[]

          Users

          Info on mentioned users

      • OptionalupdatedAt?: string

        Updated at Format: date-time

        The ISO 8601 timestamp that the forum topic comment was updated at, if relevant

    • client: Client
    • Optionaloptions: ConstructorForumThreadOptions

    Returns ForumThreadComment

Properties

channelID: string

ID of the forum channel containing this thread.

client: Client

App's client.

content: string

The content of the forum thread comment

createdAt: Date

The ISO 8601 timestamp that the forum thread comment was created at

guildID: null | string

ID of the forum thread's server, if provided.

id: number

Item ID

memberID: string

The ID of the user who sent this comment.

mentions:
    | null
    | {
        channels?: { id: string }[];
        everyone?: boolean;
        here?: boolean;
        roles?: { id: number }[];
        users?: { id: string }[];
    }

Mentions in this thread comment.

Type declaration

  • null
  • {
        channels?: { id: string }[];
        everyone?: boolean;
        here?: boolean;
        roles?: { id: number }[];
        users?: { id: string }[];
    }
    • Optionalchannels?: { id: string }[]

      Channels

      Info on mentioned channels

    • Optionaleveryone?: boolean

      Everyone

      If

      was mentioned

    • Optionalhere?: boolean

      Here

      If

      was mentioned

    • Optionalroles?: { id: number }[]

      Roles

      Info on mentioned roles

    • Optionalusers?: { id: string }[]

      Users

      Info on mentioned users

threadID: number

The ID of the forum thread

updatedAt: null | Date

The ISO 8601 timestamp that the forum thread comment was updated at, if relevant

Accessors

  • get member(): undefined | Member | Promise<Member>

    Retrieve the member who sent this comment, if cached. If there is no cached member, this will make a rest request which returns a Promise. If the request fails, it'll return you undefined as a value.

    Returns undefined | Member | Promise<Member>

Methods

  • Add a reaction to the comment.

    Parameters

    • reaction: number

      The ID of the reaction to add.

    Returns Promise<void>

  • Remove a reaction from the comment.

    Parameters

    • reaction: number

      The ID of the reaction to remove.

    Returns Promise<void>