chitose.com.atproto.moderation package#
Submodules#
chitose.com.atproto.moderation.create_report module#
chitose.com.atproto.moderation.defs module#
Module contents#
- class chitose.com.atproto.moderation.Moderation_(call: Callable[[str, list[tuple[str, str | None | int | list[str]]], bytes | dict[str, Any] | None, dict[str, str]], bytes], subscribe: Callable[[str, list[tuple[str, str | None | int | list[str]]], Callable[[str | bytes], None]], None])#
Bases:
objectWe recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.
- create_report(reason_type: Literal['com.atproto.moderation.defs#reasonSpam', 'com.atproto.moderation.defs#reasonViolation', 'com.atproto.moderation.defs#reasonMisleading', 'com.atproto.moderation.defs#reasonSexual', 'com.atproto.moderation.defs#reasonRude', 'com.atproto.moderation.defs#reasonOther', 'com.atproto.moderation.defs#reasonAppeal'], subject: RepoRef | StrongRef, reason: str | None = None) bytes#
Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.
- Parameters:
reason_type – Indicates the broad category of violation the report is for.
reason – Additional context about the content and violation.