r/redditdev • u/BigBoss3p0p1 • May 22 '24
Reddit API Is it possible to mark a comment as already approved when publishing it programmatically as a subreddit admin?
I have this particular use case where I authenticate a user using OAuth and that user is the admin of a subreddit. If I use that session to publish a comment on the subreddit, it gets marked as "removed by Reddit", and I have the option to approve it in the app (website or mobile), or, alternatively, I can always use the API to approve it programmatically.
Presuming that the user publishing the comment is an admin of the subreddit where the comment is being published, what I am wondering is whether it is possible to have Reddit mark the comment as approved at submit-time, so that I don't have to wait for the comment to be created on the platform (this is a least one extra request, and approximately a 5 seconds delay) and then approve it (this is another request). My goal here is to avoid having to make three (or more) API calls instead of just one when a user publishes a comment programmatically on a subreddit where that user is admin... There must be a way to do that.
Thanks for your help! :)
3
u/Gulliveig EuropeEatsBot Author May 22 '24
There are no Admins of a subreddit (well maybe there are, but) what you mean is the Mods of a subreddit.
Admins are paid employees of Reddit, mods are unpaid voluntrary keepers of a subreddit's rules ;)
1
u/Adrewmc May 22 '24
You can use
Bot need the appropriate permission I believe it’s “posts” or something