Skip to main content

Interface: SCCommentType

Interface SCCommentType. Comment Schema.

Properties

added_at

added_at: Date

Added at

Defined in

comment.ts:37


author

Optional author: SCUserType

User who commented

Defined in

comment.ts:32


collapsed

collapsed: boolean

If the comments is hidden

Defined in

comment.ts:67


comment_count

comment_count: number

Number of comments

Defined in

comment.ts:97


deleted

deleted: boolean

If the comments is deleted

Defined in

comment.ts:62


discussion

Optional discussion: number

Id of the Discussion object

Defined in

comment.ts:17


flag_count

flag_count: number

Number of flags

Defined in

comment.ts:92


html

html: string

Html of the comment

Defined in

comment.ts:42


id

id: number

Id of the comment

Defined in

comment.ts:12


in_reply_to

Optional in_reply_to: number

Id of the reply Comment, it must have the same parent

Defined in

comment.ts:77


latest_comments

Optional latest_comments: SCCommentType[]

Comments childs

Defined in

comment.ts:107


parent

parent: number

Id of the parent

Defined in

comment.ts:72


post

Optional post: number

Id of the Post object

Defined in

comment.ts:22


reaction

reaction: SCReactionType

Reaction obj

Defined in

comment.ts:122


reactions_count

reactions_count: []

Reactions number and objs

Defined in

comment.ts:117


status

Optional status: number

Id of the Status object

Defined in

comment.ts:27


summary

summary: string

Summary

Defined in

comment.ts:47


summary_html

Optional summary_html: string

Summary html

Defined in

comment.ts:52


summary_truncated

Optional summary_truncated: boolean

True if summary_html is truncated

Defined in

comment.ts:57


text

text: string

Text of the comment

Defined in

comment.ts:102


type

type: string

Type: comment

Defined in

comment.ts:112


vote_count

vote_count: number

Number of votes

Defined in

comment.ts:82


voted

voted: boolean

True if the logged user has already voted the comment

Defined in

comment.ts:87