redditwarp.models.user_relationship#

class redditwarp.models.user_relationship.UserRelationship(d: Mapping[str, Any])[source]#

Bases: object

property added_at: datetime#

Datetime object of when the relationship was created.

d: Mapping[str, Any]#
id36: str#

User ID as a base 36 number.

idn: int#

User ID.

id: int#

Same as idn.

name: str#

Username.

added_ut: int#

UNIX timestamp of when the relationship was created.

class redditwarp.models.user_relationship.FriendRelationship(d: Mapping[str, Any])[source]#

Bases: UserRelationship

class redditwarp.models.user_relationship.BannedSubredditUserRelationship(d: Mapping[str, Any])[source]#

Bases: UserRelationship

days_remaining: int | None#

Number of days until the ban is lifted.

Value None if the ban is permanent.

reason: str#

Ban reason.