new Comment()
Comment class
bundles helper functions around the comment formats
- Source:
Methods
(static) getCreated() → {int}
gets the UNIX timestamp of the comment creation
- Source:
Returns:
- Type
- int
(static) getIcon() → {string}
gets the icon of the comment submitter
- Source:
Returns:
- Type
- string
(static) isBoundTo(pasteId) → {bool}
checks if the comment belongs to the given document and its parent
Comments without authenticated IDs predate this check and are
accepted.
Parameters:
| Name | Type | Description |
|---|---|---|
pasteId |
string |
- Source:
Returns:
- Type
- bool