Comment
comment ¶
Comments and discussions for pages, blocks, and data sources.
Comment(*args: Any, **kwargs: Any) ¶
A comment on a page, block, or data source behaving like a normal string.
discussion_id: UUID property ¶
The ID of the discussion thread that this comment belongs to.
text: Text | None property ¶
The text of the comment.
user: User property ¶
The user who created the comment.
__repr__() -> str ¶
__str__() -> str ¶
update(text: str | None = None, *, markdown: str | None = None) -> Self ¶
Replace this comment's content with text or Markdown.
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 | None = None, *, markdown: str | None = None) -> Self ¶
Add a comment to the discussion using text or Markdown.
Note
This functionality requires that your integration was granted insert comment capabilities.
remove(comment: Comment) -> None ¶
Delete a comment from Notion and remove it from this discussion.