diff --git a/src/objects/Comment.d.ts b/src/objects/Comment.d.ts index 774fbb6..e62c436 100644 --- a/src/objects/Comment.d.ts +++ b/src/objects/Comment.d.ts @@ -4,7 +4,6 @@ import Subreddit from './Subreddit'; import VoteableContent from './VoteableContent'; export default class Comment extends VoteableContent { - approved: boolean; body_html: string; body: string; collapsed_reason: any; // ? diff --git a/src/objects/Submission.d.ts b/src/objects/Submission.d.ts index 07f82d8..2664285 100644 --- a/src/objects/Submission.d.ts +++ b/src/objects/Submission.d.ts @@ -74,7 +74,6 @@ export default class Submission extends VoteableContent { link_flair_text: string | null; link_flair_text_color: 'dark' | 'light'; link_flair_type: 'text' | 'richtext'; - locked: boolean; media: Media | null; media_embed: MediaEmbed; media_only: boolean; diff --git a/src/objects/VoteableContent.d.ts b/src/objects/VoteableContent.d.ts index 6fdc4c8..887bbe5 100644 --- a/src/objects/VoteableContent.d.ts +++ b/src/objects/VoteableContent.d.ts @@ -33,6 +33,7 @@ export type SubredditType = | 'public'; export default class VoteableContent extends ReplyableContent { + approved?: boolean; approved_at_utc: number | null; approved_by: RedditUser | null; archived: boolean; @@ -55,6 +56,7 @@ export default class VoteableContent extends ReplyableContent { edited: number | boolean; gilded: number; gildings: Gildings; + locked: boolean; /** true = upvoted, false = downvoted, null = hasn't voted */ likes: boolean | null; mod_note: string;