Class DocComment

DocComment represents a doc comment coming from a Docs channel.

Hierarchy

  • Base<number>
    • DocComment

Constructors

Properties

channelID: string

ID of the channel the comment is in.

client: Client

Bot's client.

content: string

The content of the comment.

createdAt: Date

The date of the comment's creation.

docID: number

The ID of the doc the comment is in.

guildID: null | string

ID of the guild, if provided.

id: number

Item ID

memberID: string

ID of the member who created this comment.

mentions: null | APIMentions

Mentions.

Raw data

updatedAt: null | Date

The date when the comment was last updated.

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 undefined or throw an error that you can catch.

    Returns undefined | Member | Promise<Member>

Methods

  • Add a reaction to this comment.

    Parameters

    • reaction: number

      ID of the reaction to add.

    Returns Promise<void>

  • Remove a reaction from this comment.

    Parameters

    • reaction: number

      ID of the reaction to remove.

    Returns Promise<void>