redditwarp.models.subreddit_rules
#
- class redditwarp.models.subreddit_rules.RuleScope(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
- ALL = 1#
- SUBMISSION = 2#
- COMMENT = 3#
- class redditwarp.models.subreddit_rules.Rule(d: Mapping[str, Any])[source]#
Bases:
object
- short_name: str#
Short description.
Up to 100 characters.
- description: str#
Description.
Up to 500 characters.
- description_html: str#
Same as
description
but HTML formatted.
- violation_reason: str#
Violation reason text.
Up to 100 characters.
Value matches
short_name
if left empty in the UI. It’s unfortunately not possible to tell if this field is empty through the API.
- created_ut: int#
Unix timestamp of when the rule was created.