These are chat archives for praw-dev/praw

Sep 2016
Bryce Boe
Sep 17 2016 21:18
@djshadowxm82 based on set_flair I'm going to assume you're using PRAW<4. It certainly can be done with an older PRAW version, though you'll have to get someone else to help you out. In PRAW4, assuming you are a moderator of the subreddit, and you have the right scope: reddit.subreddit('subreddit_name').flair.set(submission)
The error you are getting appears to indicate that check_id is incorrect.
In PRAW<4 you have to pass in a submission object for that to work.
item can be a string, Redditor object, or Submission object.
If item is a string it will be treated as the name of a Redditor.