- class praw.models.reddit.subreddit.ContributorRelationship(subreddit: praw.models.Subreddit, relationship: str)#
Provides methods to interact with a
Contributors are also known as approved submitters.
Contributors of a subreddit can be iterated through like so:
for contributor in reddit.subreddit("test").contributor(): print(contributor)
- __call__(redditor: str | praw.models.Redditor | None = None, **generator_kwargs: Any) Iterator[praw.models.Redditor] #
redditor – When provided, yield at most a single
Redditorinstance. This is useful to confirm if a relationship exists, or to fetch the metadata associated with a particular relationship (default:
Additional keyword arguments are passed in the initialization of
- __init__(subreddit: praw.models.Subreddit, relationship: str)#
subreddit – The
Subredditfor the relationship.
relationship – The name of the relationship.
- add(redditor: str | praw.models.Redditor, **other_settings: Any)#
redditorto this relationship.
redditor – A redditor name or
Abdicate the contributor position.