import snoowrap from 'snoowrap'; import DBSubmission from "./db-submission"; import DBDownload from "./db-download"; import { DBEntity } from "./db-entity"; export default class DBComment extends DBEntity { id: string; author: string; subreddit: string; selfText: string; score: number; createdUTC: number; firstFoundUTC: number; parentRedditID: string; permaLink: string; rootSubmissionID: string; processed: boolean; parentSubmission: Promise; parentComment: Promise; children: Promise; downloads: Promise; loadedData?: snoowrap.Comment; /** * Find this comment's root submission. * If the submission is not stored locally, loads the submission from Reddit and saves it in the DB. */ getRootSubmission(): Promise; static fromRedditComment(comment: snoowrap.Comment): Promise; }