Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggedInLevelComment

Hierarchy

Index

Properties

author

author: LoggedInUser

createdAt

createdAt: GDDate

The time when the comment was created

id

id: number

The ID of the comment

isSpam

isSpam: boolean

Whether or not the comment has been marked as spam

levelID

levelID: number

The ID of the level this comment is from

likes

likes: number

The number of likes on the comment

Optional percent

percent: number

The percentage the user reached on the level. Only present if the commenter opted to show percentage with their comment.

text

text: string

The text in the comment

Methods

delete

  • delete(): Promise<boolean>
  • Deletes this comment from the servers

    async

    Returns Promise<boolean>

    Whether the comment deletion was successful

getLevel

  • getLevel(resolve?: false): Promise<SearchedLevel>
  • getLevel(resolve: true): Promise<Level>
  • Gets the level associated with this comment

    async

    Parameters

    • Optional resolve: false

      Whether or not to resolve the search into the full level

    Returns Promise<SearchedLevel>

    The level or searched level this comment belongs to

  • Gets the level associated with this comment

    async

    Parameters

    • resolve: true

      Whether or not to resolve the search into the full level

    Returns Promise<Level>

    The level or searched level this comment belongs to

Generated using TypeDoc