r/redditdev • 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?

4 Upvotes

26 comments sorted by

View all comments

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/Watchful1 RemindMeBot & UpdateMeBot Jul 27 '21

It happened very suddenly, I went from not ever having received this response to a dozen of them from different accounts all at once.

I do know that reddit has been blocking direct messages from users to moderators of subreddits they have been banned from for a while now, so I'm guessing they turned something on that made that a lot more aggressive. Or my bot tripped some spam model and got itself blacklisted.

1

u/Lil_SpazJoekp PRAW Maintainer | Async PRAW Author Jul 27 '21

Will you test it with my account?

2

u/Watchful1 RemindMeBot & UpdateMeBot Jul 27 '21

I was able to send a message to you from my account, but using the exact same code from the bot account I got the error.

1

u/Lil_SpazJoekp PRAW Maintainer | Async PRAW Author Jul 27 '21

Interesting. When you sent with your account was it via reddit or the api?

1

u/Watchful1 RemindMeBot & UpdateMeBot Jul 27 '21

Both via the api. Exact same code other than the account.

1

u/Lil_SpazJoekp PRAW Maintainer | Async PRAW Author Jul 27 '21

What other account? If you don't want to say publicly, dm me or poke me on discord.

2

u/Watchful1 RemindMeBot & UpdateMeBot Jul 27 '21

It's u/UpdateMeBot. Which is an issue since it regularly sends out tens of thousands of messages an hour. So even if only a fraction of accounts are moderators, it still adds up to a lot of people not getting the messages they signed up for.

1

u/Lil_SpazJoekp PRAW Maintainer | Async PRAW Author Jul 27 '21

Hmmm. Last idea I have is to try sending as the bot on the website. If that doesn't work then I'm out of ideas and you'll have to probably wait for an admin to chime in.

1

u/Watchful1 RemindMeBot & UpdateMeBot Jul 27 '21

I've confirmed the bot can't message people through the website either. I can't even send a message to myself since I moderate several subs.

I'll wait till tomorrow since I posted this after business hours and hope an admin sees it, but would you have any recommendations for the best way to reach out to reddit? I'm not sure just opening a regular help desk ticket will get to anyone.

→ More replies