redditwarp.models.moderation_note#
- class redditwarp.models.moderation_note.ModerationNote(d: Mapping[str, Any], uuid: str, unixtime: int, datetime: datetime.datetime, label: str, subreddit_id: int, subreddit: str, agent_id: int, agent: str, target_id: int, target: str)[source]#
Bases:
DatamementoDataclassesMixin- d: Mapping[str, Any]#
- uuid: str#
- unixtime: int#
Unix timestamp of when the mod note entry was made.
- datetime: datetime#
Datetime object of when the mod note entry was made.
- label: str#
- subreddit_id: int#
ID of the subreddit in which this note belongs.
- subreddit: str#
Name of the subreddit in which this note belongs.
- agent_id: int#
User ID of the moderator associated with this note.
- agent: str#
Name of the moderator associated with this note.
- target_id: int#
ID of the user who this note applies to.
- target: str#
Name of the user who this note applies to.
- class redditwarp.models.moderation_note.ModerationActionNote(d: Mapping[str, Any], uuid: str, unixtime: int, datetime: datetime.datetime, label: str, subreddit_id: int, subreddit: str, agent_id: int, agent: str, target_id: int, target: str, action: str)[source]#
Bases:
ModerationNote- label: str#
Values:
APPROVAL,REMOVAL,BAN,MUTE,INVITE,SPAM,CONTENT_CHANGE,MOD_ACTION.
- action: str#
Name of the mod log action. In lowercase.
- class redditwarp.models.moderation_note.ModerationUserNote(d: Mapping[str, Any], uuid: str, unixtime: int, datetime: datetime.datetime, label: str, subreddit_id: int, subreddit: str, agent_id: int, agent: str, target_id: int, target: str, note: str, has_anchor: bool, anchor_submission_id: int | None, anchor_comment_id: int | None)[source]#
Bases:
ModerationNote- label: str#
Values: empty string,
ABUSE_WARNING,SPAM_WARNING,SPAM_WATCH,SOLID_CONTRIBUTOR,HELPFUL_USER,BOT_BAN,PERMA_BAN,BAN.Value empty string if no label was assigned to this note.
- note: str#
Content of the user note.
- has_anchor: bool#
Whether this note is associated with a submission or comment.
If true then either
anchor_submission_idoranchor_comment_idwill be non-None.
- anchor_submission_id: int | None#
The submission ID associated with this user note.
- anchor_comment_id: int | None#
The comment ID associated with this user note.