devvit icon indicating copy to clipboard operation
devvit copied to clipboard

Export getRedditApiPlugins() from @devvit/reddit

Open PitchforkAssistant opened this issue 3 months ago • 2 comments

https://github.com/reddit/devvit/blob/3db7956308a5a36069aa25ade17e97088770170e/packages/reddit/src/plugin.ts#L30-L81

Please export the relevant methods located in @devvit/reddit/plugin.ts to get the lower level API functions for use within a Devvit Web app. Marking them as internal and not exporting them from the package only complicates their usage, it does not prevent it. After manually patching the package to export them, they work as intended.

Image

PitchforkAssistant avatar Sep 10 '25 10:09 PitchforkAssistant

these are intended to be internal, and can change at any time. ideally we expose the specific functionality that you're looking for directly!

cedaraspen avatar Oct 29 '25 17:10 cedaraspen

There is some missing functionality, but the biggest issue is the missing data. Ideally everything in the data from Protos should be accessible via the RedditClient.

Exposing this function (and Devvit.redditAPIClients in @devvit/public-api) with a big "internal, do not use unless necessary" label would be a decent stop-gap solution, as the progress on actually adding all the missing functionality and data has been quite slow.

PitchforkAssistant avatar Oct 29 '25 18:10 PitchforkAssistant