redditwarp.models.live_thread#

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

Bases: object

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

E.g., 177beztuzebxj.

title: str#
created_ut: int#
created_at: datetime#
description: str#

Live thread description as markdown text.

This is the text below the title.

description_html: str#

Live thread description as HTML.

resources: str#

Sidebar text in markdown.

resources_html: str#

Sidebar text in HTML.

websocket_url: str#

Websocket URL. Connect to this websocket to stream live updates.

complete: bool#

True if the live thread is marked complete.

nsfw: bool#
viewer_count: int#

Number of subscribers. Value is fuzzed

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

Bases: object

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

E.g., 890e9242-d7fb-11eb-b450-0ed185f1b209.

author: str | None#

Name of the user who posted the update.

Value null if the user account was deleted.

body: str#

Markdown content body.

body_html: str#

Content body in HTML.

created_ut: int#
created_at: datetime#
stricken: bool#

True if the update has been stricken.

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

Bases: object

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

Name of a user; name of the contributor.

id36: str#

Contributor’s user ID as a base 36 number.

idn: int#

Contributor’s user ID.

id: int#

Same as idn.

permissions: Sequence[str]#

Values: all, close, discussions, edit, manage, settings, update.

Can be empty. This means no permissions.

class redditwarp.models.live_thread.ContributorList(contributors: Sequence[Contributor], invitations: Sequence[Contributor])[source]#

Bases: Sequence[Contributor]

contributors: Sequence[Contributor]#
invitations: Sequence[Contributor]#