redditwarp.siteprocs.moderation.legacy_ASYNC#

class redditwarp.siteprocs.moderation.legacy_ASYNC.Legacy(client: Client)[source]#

Bases: object

pull_users: LegacyPullUsers#

Get redditors that relate to a subreddit.

(raises):

Same as get_approved_user().

async list_moderators(sr: str) Sequence[ModeratorListItem][source]#

Get a list of moderators from a subreddit.

This procedure doesn’t work (403 HTTP error) if there is no user context. Use moderators() instead.

Parameters:

sr (str) –

Return type:

Sequence[ModeratorListItem]

(raises):

In addition to get_approved_user():

Raises:

redditwarp.http.exceptions.StatusCodeException

  • 403:
    • There is no user context.

    • The current user is banned from the subreddit.

async get_approved_user(sr: str, user: str) UserRelationship | None[source]#

Get information about an approved user in a subreddit.

Parameters:
  • sr (str) –

  • user (str) –

Return type:

Optional[UserRelationship]

Raises:
async get_wiki_contributor(sr: str, user: str) UserRelationship | None[source]#

Behaves similarly to get_approved_user().

async get_banned_user(sr: str, user: str) BannedSubredditUserRelationship | None[source]#

Behaves similarly to get_approved_user().

async get_muted_user(sr: str, user: str) UserRelationship | None[source]#

Behaves similarly to get_approved_user().

async get_wiki_banned_user(sr: str, user: str) BannedSubredditUserRelationship | None[source]#

Behaves similarly to get_approved_user().