Closed ghost closed 9 months ago
However,
praw/models/reddit/subreddit.py
and the error message above seem to indicate this has been deprecated within PRAW:
The positional usage of other_subreddits
in .subscribe()
is deprecated not the parameter itself.
The .subscribe()
method you're referencing is where you need to pass in other_subreddits=["funny", "aww"]
like so:
reddit.subreddit('pics').subscribe(other_subreddits=["funny", "aww"])
Oh, duh! Thanks. Completely blanked on the fact that the parameter was listed for subscribe()
and not subreddit()
.
This issue is stale because it has been open for 30 days with no activity.
Remove the Stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stale for 30 days with no activity.
Describe the Bug
Encountered this error when attempting to subscribe to multiple subreddits at once:
The docs mention that the
other_subreddits
parameter is accepted.The Reddit docs also mention that the same parameter (called
sr / sr_name
on their end) is still accepted.However,
praw/models/reddit/subreddit.py
and the error message above seem to indicate this has been deprecated within PRAW:Desired Result
Code to reproduce the bug
My code does not include sensitive credentials
Relevant Logs
This code has previously worked as intended
I'm not sure, I haven't used this code before.
Operating System/Environment
Windows 10
Python Version
3.12.0
PRAW Version
7.7.1
Links, references, and/or additional comments?
No response