redditwarp.models.my_account#

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

Bases: DatamementoBase

class Subreddit(d: Mapping[str, Any])[source]#

Bases: object

name: str#
openness: str#

Either: public, private, restricted, archived, employees_only, gold_only, gold_restricted, or user.

subscriber_count: int#
title: str#
public_description: str#
nsfw: bool#
id36: str#

User ID of the current user account as a base 36 number.

idn: int#

User ID of the current user account.

id: int#

Same as idn.

name: str#

Username of the current user account.

created_ut: int#

Unix timestamp of when the current user account was created.

created_at: datetime#

Datetime object of when the current user account was created.

post_karma: int#
comment_karma: int#
awardee_karma: int#
awarder_karma: int#
total_karma: int#
has_mail: bool#

True if the current user has a new inbox message.

has_mod_mail: bool#

True if the current user has a new modmail message.

inbox_count: int#

Number of new inbox messages.

coins: int#

How rich the current user is.

friend_count: int#

Number of friends in the current user’s friends list.

This is an old reddit feature. See https://www.reddit.com/prefs/friends/.

nsfw: bool#

Whether the current user account has opted in to NSFW content.

On old reddit, this is the preference option that says “I am over eighteen years old and willing to view adult content”.

subreddit: MyAccount.Subreddit#

Information about the current user account’s user subreddit.