RedditBase¶
-
class
asyncpraw.models.reddit.base.
RedditBase
(reddit: Reddit, _data: Optional[Dict[str, Any]], _extra_attribute_to_check: Optional[str] = None, _fetched: bool = False, _str_field: bool = True)¶ Base class that represents actual Reddit objects.
-
__init__
(reddit: Reddit, _data: Optional[Dict[str, Any]], _extra_attribute_to_check: Optional[str] = None, _fetched: bool = False, _str_field: bool = True)¶ Initialize a RedditBase instance (or a subclass).
- Parameters
reddit – An instance of
Reddit
.
-
await
load
()¶ Re-fetches the object.
This is used to explicitly fetch or re-fetch the object from reddit. This method can be used on any
RedditBase
object.await reddit_base_object.load()
-