r/Devvit

Getting user post data of a subreddit
▲ 6 r/Devvit

Getting user post data of a subreddit

I am trying to get user post data in a subreddit but facing a challenge.

I have created a screen where i am showing total number of posts created by a user on a subreddit.

In my case i had created a post 23 days ago...because of the reddit limitation of 1000 posts in the api response, i am not getting my post data and the count is coming 0.

Now, i can use getUserPosts() and filter it by subreddit name, but in that case as well i will not be able to see posts for users which have kept their profile hidden.

Is there any other way to get user post data?

Ps. i know i have set the limit to 2000 in code, but max is 1000

u/thelipaguss — 2 hours ago
▲ 3 r/Devvit

Feature request: a "sticky"/persistent post webview mode for live-event apps

built an NHL scoreboard app (/r/GoalPostBot) that posts a live game-thread scoreboard — score, linescore, shots/PP, play-by-play. It works in the two webview states we have today: inline (sits in the post, scrolls away with the page) and expanded (takes over the viewport, hides the comments).

The use case I keep running into: during a live game, people would like to follow the scoreboard while chatting in the comments. That's the whole point of a game thread. But neither current mode supports it.... inline scrolls out of view as you read comments, and expanded covers the comment section entirely.

What I'd love: a way, in desktop mode, for a post webview to render in a sticky/pinned "companion" mode — staying visible (e.g. pinned to the top of the viewport) while the user scrolls and participates in the comment thread underneath it. Basically a persistent live widget alongside the conversation, rather than an either/or between "in the feed" and "full takeover."

I understand that position: fixed inside the webview only pins to the iframe, not the page, so this clearly needs platform support rather than something I can do in app code — hence the request.

Live-event apps in general would benefit (sports scores, election/results trackers, livestream companions, AMAs with a live status panel). Happy to be a test case if it's useful — the app's live now if anyone wants to see the constraint in action.

reddit.com
u/re-verse — 18 hours ago
▲ 9 r/Devvit

How are you promoting your Reddit apps if you don’t already have a community?

Hey everyone,

I launched a Reddit app a few days ago, and I’m also getting ready to launch a game soon. Both projects took me weeks/months of work, so now I’m trying to understand the best way to actually get them in front of users and moderators.

For those of you who have already launched Devvit apps: how are you promoting them?

Are you mainly reaching out directly to subreddit moderators, posting in specific communities, relying on the Reddit app directory, or using some other strategy?

I’m asking because, at least from my early experience, it feels like the app directory alone doesn’t generate much visibility — even in a relatively specific category like Finance.

I’d really appreciate any advice, examples, or lessons learned from other developers who have gone through this.

Thanks!

reddit.com
u/ddux7 — 24 hours ago
▲ 1 r/Devvit

Issue submitting a comment as user

I have an app with a button that submits a comment for their score to a stickied post. I followed the docs here.

Code:

        const comment = await reddit.submitComment({
          id: scoreComment.id,
          text: createScoreComment(score, totalQuestions),
          runAs: 'USER',
        });

and permissions block:

    {
      "$schema": "https://developers.reddit.com/schema/config-file.v1.json",
      "permissions": {
        "reddit": {
          "enable": true,
          "scope": "user",
          "asUser": ["SUBMIT_COMMENT"]
        }
      }, ... etc

I'm getting this error in both dev and prod with an approved app and installed to a non-dev subreddit:

grpc invocation failed with status 2; not allowed to run as user: appversion is not approved to run as user

Any ideas? The app's listing does not say it can comment as users, but I do have it in the permissions block. Is there another step required? Thanks!

reddit.com
u/shiftycc — 13 hours ago
▲ 0 r/Devvit

Feedback Friday - MLB Game Highlights App

Hi! New to building in Devvit. I built a game highlights app using React and MLB's free API. Would love any feedback!

The goal was to have a place where the community could celebrate all of the great game events and keep things positive. In this case of course the app is configured to only show highlights that are pro-Mariners. I don't really have plans to make this app more widely available, I mostly just wanted something for this new Mariners fan sub that a friend and I created.

I also built a live game log, but not really a point in sharing it unless a game is going on because it won't show much.

reddit.com
u/youzerrrname — 17 hours ago
▲ 2 r/Devvit

Reg Devvit games

I have seen many people build the same honk game on r/honk.

Are they all eligible for funds and why is it so.

I mean I find it very weird. Is it that they are expecting to earn based on some upgrades which may make their app standout from other similar ones

reddit.com
▲ 0 r/Devvit

Mail Guardian - Looking out for moderators and community members alike!

Mail Guardian is a an AI powered Mod Mail Assistant that goes above and beyond.

App Can be found here (Waiting to be published)

For Developers you can view the repo here - Github Repo
Our Research Doc can be found here

Mail Guardian is able to assist in many scenarios to make sure you're community is running safe and PM you depending on the threshold you set. However Mail Guardian will override it's own rules when a possible life threatening or self harm condition or any other severe condition warrants the behavior and will PM you anyways.

We ran over 2,400 simulated tests that were created by using real reddit scenarios for different subs to see how our agent would perform. (33 / 33) self harm cases were immediately followed with a response that offered resources and would alert the Mods right away.

Ex 1

Replying to Self Harm

For any cases that involve bullying or harassment our agent will automatically compile evidence to help you take action while alerting you right away.

Evidence of Harrassment

Mail Guardian is also capable of helping people with the common question of "Can I post this?" - it will give the user accurate information based on your rules, your AutoMod rules, and recently deleted posts. A Member can even paste a snippet of what they plan on posting and Mail Guardian will let them know how they can enhance it to better fit your subreddit.

For any mail in a foreign language, Mail Guardian will automatically respond in their native language and leave you a transcript of the entire conversation if you enable the option within the settings menu.

Every Mod Mail will automatically have a corresponding internal mail created by Mail Guardian with the reasoning process of the Agent on all of its responses, so you get complete transparency as to what's going on and why the decisions were made.

You can use Mail Guardian to do a user scan by pressing the Member Scan button from the menu, enter their username and hit scan and the report will be delivered to your Mod Mail.

User Scan

User Scan 2

Mail Guardian will automatically nudge somebody that if they have not responded within 6 hours, if no response is received it will automatically archive the item.

As a moderator for each of the mod mail internal items created for each situation. You can type in the -rep command to have Mail Guardian generated a report of the user attached to the mod mail for you, or you can -archive which will have Mail Guardian dispatch a farewell we are now archiving this mail message to the recipient.

Are you worried about the Costs? We aren't new to making highly efficient agentic workflows, during our research we accumulated the token usage and costs for roughly 2,000 messages the cost was $2.

--

Don't want to receive PMs? - No worries, set up your availability through the menu.

Get your Snooze On!

Credits to u/fsv for his repos that gave us an idea of what we can work with and u/llamageddon1 for their Reddit & Karma Explained posts and quite a few more that we reference when someone has low karma and would be unable to post! Including the official Reddiquette!

We hope that Mail Guardian will be able help keep communities going safe and strong! Thank you!

reddit.com
u/BeneficialAnt6344 — 1 day ago
▲ 2 r/Devvit

[Bug/Limits] `reddit.sendPrivateMessage` returning gRPC 404 Not Found after ~1000 messages. Action-specific spam ban?

Hi Devvit team!

I’m the developer of « MazWiz Hangout Map » (bot account: `u/hangout-map`), a custom Devvit app that acts as a local location-based social network where users can host real-world events and ping nearby users to hang out.

Currently, the app relies on `reddit.sendPrivateMessage` to facilitate communication. I use it to send event notifications, host broadcasts to attendees, and local hangout requests (all strictly to users who have explicitly opted-in via the app's settings).

The Issue:

Recently, the app completely lost the ability to send Private Messages. Every time the app calls `reddit.sendPrivateMessage`, it throws the following error directly to the user:
`2 UNKNOWN: grpc invocation failed with status 2; 404 Not Found`

Context & Troubleshooting:

- The 1000 Milestone: the app tracks global stats via Redis. The PMs were working flawlessly until we hit exactly ~1,000 total DMs sent. After that threshold, this error started appearing for *all* users across the board.

- Account Status: I checked if the `u/hangout-map` bot account was completely shadowbanned. I opened an incognito window and checked the profile, and it is still fully visible and normal.

- My Hypothesis: Because the PMs contain repetitive boilerplate text (e.g., event details + a link to reply to the host), it seems Reddit's automated anti-spam system has placed an action-specific PM restriction on our bot account, causing the internal gRPC call to fail with a 404. Alternatively, there might be a hardcoded Devvit quota for PMs that we just hit.

My Requests/Questions:

  1. Could someone on the team take a look at the `u/hangout-map` bot account and see if it was flagged by the spam filters? If so, is it possible to whitelist the bot or lift the PM restriction?
  2. Are there specific undocumented rate limits or lifetime quotas for `sendPrivateMessage` that I should be aware of so I can better throttle the architecture?

Any help or insight into this gRPC error would be greatly appreciated! Thank you!

reddit.com
u/MachineElf_INFJ — 1 day ago
▲ 2 r/Devvit

Is there an AI Automoderator?

When I submit new topics to some subs, I see

>Remember, AI can make mistakes and mods may still remove content for reasons other than those listed.

notification before the post is approved. It seems there is an AI app that checks the posts. Is this AI app a Devvit app or Reddit official feature?

reddit.com
u/Positive_Radish_9403 — 3 days ago
▲ 24 r/Devvit

I built a Devvit app that makes recruiting new mods a bit easier

How it helps your mod team:

Build a custom application form with your choice of question types: info slides, requirements lists, choice, multi select, free text, image questions, comment scenarios, post scenarios, star ratings, and a mandatory agreement. Basically everything missing from Reddit's native recruitment tool. Find the right candidate that matches your team vibe.

Set requirements on who can apply: account age, karma, community karma, or any combination. Vote, leave notes, and accept or reject , request more info with one click with a customised modmail template. Add a Discord webhook and get every new application delivered straight to your server.

How it looks for applicants:

A clean, simple form right inside the subreddit. No external links, no Google Forms. If they do not meet your requirements, they are told exactly why. After submitting, they can check back anytime to see their application status. draft is saved automatically, they can come back and finish it anytime.

Getting started with Mod Recruit

Install ModRecruit on your subreddit, then open the subreddit menu and select Create ModRecruit Post.

It comes with pre-filled questions so you don't need to change anything to get going. If you want to customise, go to Settings -> Customise Form, add or edit questions, and save. For any other changes like eligibility rules or message templates, just go to Settings and save.

When everything looks good, click Publish Form -> applications open straight away.

>You can close or reopen applications at any time from Settings.

For a demo, please check : https://www.reddit.com/r/mod_recruit_dev/

Built with ❤️ for Reddit Moderators.

u/Oddie-hoodie369 — 3 days ago
▲ 6 r/Devvit

I made a new thing - Youtube Info and Enforcer!

I've made a new mod app for the Hackathon to handle Youtube video submissions and Youtube links in comments.

https://developers.reddit.com/apps/yt-infoapp

This app has two main functions - an optional informational comment that can be added in reply to posts or comments that contain Youtube URLs, and automatic removal of Youtube videos that don't meet the requirements of the subreddit.

Example information comment:

https://preview.redd.it/5in83c21lb2h1.png?width=906&format=png&auto=webp&s=fc9e32596a674ddbdb78bfc4e2c67dfd0706a2d7

The info comments look like this, and you can optionally also configure it to add the channel subscriber count, view count and video description. If more than one video link is found in a post or comment, the info comment will include information about all of them.

On the enforcement side, you can choose to remove or filter to the queue content containing Youtube links based on three metrics:

  • Channel subscriber count (either lower than or higher than) - good for subs that want to avoid spam from tiny channels, or avoid links to videos from big channels in subs dedicated to new or small Youtube channels
  • Video duration (either lower than or higher than) - good for subs for long-form content or short-form content only
  • Hashtags (configurable per-subreddit) - to avoid spam for videos on certain topics. E.g if you wanted to avoid crypto scam videos that typically might put hashtags in the description or title

The idea is that this app runs in the background and just does its thing once configured. No annoying webviews or custom queues for the sake of it. Just simple, non-intrusive and effective.

The app uses the Youtube API to retrieve information. Subreddits do not have to provide their own API keys for the app to work.

The app is public right now and available to install, and as always with my apps the app is open source. I'd love to hear feedback on this idea!

A future idea that I'm considering:

A way to ban certain channels or individual videos from a subreddit and prevent those videos/channels from being shared. For me to do this, I need to wait for menu-initiated webviews to be available to manage that blocklist. I don't want a janky experience that requires a custom post to be created on the subreddit, even if it's removed immediately.

reddit.com
u/fsv — 3 days ago
▲ 0 r/Devvit

Ability to install the devout app to the sub you moderate

Currently, unlisted apps can only be installed on subreddits that the developer personally owns. It would bring significantly more value if developers also had the ability to install these unlisted apps on any subreddit where they have moderator permissions.

reddit.com
u/Omega_Neelay — 3 days ago
▲ 7 r/Devvit

Why is it so hard to develop games on Reddit?

I don't get why Reddit is so restrictive about the server I am using. Obviously any multiplayer game needs a backend to send information from one player to another. How can it be that I am not allowed to use my current infrastructure for that when it is not hosted on services Reddit likes. Are you really expecting me to rewrite/rehost my whole backend only to develop games on Reddit? You realize Reddit is not the only plattform for games, right? And also not a really big player, right? Of course I won't rewrite my backend, I will just move on.

reddit.com
u/Wrong-Surprise-3800 — 3 days ago
▲ 3 r/Devvit

I built a fully functional slot machine that runs inside this Reddit post. No links, no tabs, just memes.

 I’ve always felt that scrolling Reddit needed more... gambling (with fake internet points, of course).
So, I built Meme Roulette link using the new Reddit Dev Platform. It’s a native experience where you can:
Bet your Karma: Finally, a use for those numbers on your profile.
Collect Rares: Win "Legendary Doge" or "Stonks" cards to flex in the comments.
Compete: There's a live leaderboard for this specific post.
I’m looking for feedback from fellow devs and gamers. Does the "Pity System" feel fair? What meme should we add as the next Jackpot symbol?
Let’s see who can hit the first Legendary card below!

reddit.com
u/stacktrace_ghost — 3 days ago
▲ 5 r/Devvit

I never understand what's the use case of this "Open Devvit Logs"?? It doesn't even open or do anything!! Can anyone explain it!?

u/Aryan_Raj_7167 — 3 days ago
▲ 11 r/Devvit

One week left in Reddit’s Mod Tools and Migrated Apps hackathon!

Hi there!

The Mod Tools and Migrated Apps Hackathon is in the home stretch! The contest, which runs for another week (until May 27**),** includes $45,000 in prizes. 

Make sure to review the full contest rules, submission guidelines, resources, and judging criteria here.

And, if you haven’t already, be sure to join our Discord for live support. We are hosting office hours for drop-in questions and help there.

u/Togapr33 — 3 days ago
▲ 9 r/Devvit+3 crossposts

PathRush: a new path puzzle every day, playable right in the feed

Just shipped PathRush a daily path-filling puzzle built on Devvit Web (React + Hono + Redis). Connect 1 → 2 → 3, fill the whole grid in one stroke. It's got per-level leaderboards, a coin economy, 70+ cosmetic skins, and full UGC: players publish their own puzzles as real posts via runAs: 'USER'. Solvability is validated server-side before anything goes live. Took a couple of review rounds to get the inline-splash scroll behavior and UGC attribution right happy to share what I learned. Feedback welcome!

u/According-Lock-8351 — 3 days ago
▲ 3 r/Devvit

Can we get forUserType: approvedUser ?

I mod a restricted sub with one of my devvit apps installed. Since the subreddit is restricted, only approved users can create posts through reddit’s default 'create post' flow, which doesn’t support custom posts from the devvit app.

I’d like approved users to be able to access the devvit app through the menu, but there’s currently no configuration for that. Right now, the only way to grant access is by making them moderators, which isn’t practical in the long run.

At the moment, the only available forUserType options are 'moderator' and 'user'. Could we also get an "approvedUser" option?

reddit.com
u/shruest — 3 days ago