Skip to content

Comment

comment

Comments and discussions for pages, blocks, and databases.

Comment(*args: Any, **kwargs: Any)

A comment on a page, block, or database behaving like a normal string.

discussion_id: UUID property

The ID of the discussion thread that this comment belongs to.

text: Text property

The text of the comment.

user: User property

The user who created the comment.

__repr__() -> str

__str__() -> str

Discussion(comments: Sequence[Comment], *, parent: DataObject)

A list of comments, i.e. a discussion thread.

__getitem__(idx: int | slice) -> Comment | Sequence[Comment]

__getitem__(idx: int) -> Comment
__getitem__(idx: slice) -> Sequence[Comment]

__len__() -> int

__repr__() -> str

__str__() -> str

append(text: str) -> Self

Add a comment to the discussion.

Note

This functionality requires that your integration was granted insert comment capabilities.