r/redditdev • u/Watchful1 RemindMeBot & UpdateMeBot • Jul 27 '21
Reddit API New error response PM_MODERATOR_RESTRICTION
praw.exceptions.RedditAPIException: PM_MODERATOR_RESTRICTION: "Sorry, you can't message this person. If you need to speak to a moderator send a message directly to the community (e.g. r/...)" on field 'to'
I've just started getting this response when my bot tries to send a message to several different users. This user is a moderator of several subreddits, but the bot is not banned in any of them and the user specifically signed up to get messages from the bot. The bot is a well established 5+ year old account with lots of karma.
Anyone have any ideas why this just started getting filtered?
3
u/redtaboo Jul 27 '21
Heya! This is an experiment we're working on to help protect mods from harassment - that said, we don't want to prevent good bots from messaging users or mods, especially those that are opt-in like yours.
Our devs are looking into ways now to keep from hitting bots like yours - in the meantime, you should be good now! Can you check when you have a chance?
1
u/Lil_SpazJoekp PRAW Maintainer | Async PRAW Author Jul 27 '21
As a moderator of several subreddits, this is a very welcome change.
As for your question, I checked some resources I have and there hasn't been any posts from an admin regarding this.
1
u/ShiningConcepts Jul 27 '21
Can you try PMing that user yourself on Reddit's site using the exact same process the bot simulates?
If that doesn't work, I would assume the issue is the Redditor has enabled a setting that blocks personal messages and asks them to direct those messages to the subreddit they moderate.
If that does work, then this would be an issue with the API itself.
1
u/Mahrkeenerh u/notify_me_bot Jul 28 '21 edited Jul 29 '21
I was just hit with this same thing, didn't have a problem before (other than ratelimit), but now a new challenger arose
Edit (29.7.) - no longer getting this error