Creates a Toolbox client. Do this at the top of event handlers, where you
passing reddit
from the event context. Make sure you've called
Devvit.configure({redditAPI: true})
as well!
Your RedditAPIClient instance
Creates a usernote.
Name of the subreddit to create the note in
Details about the usernote to create
Wiki revision reason to send
Promise which resolves on success or rejects on error
Gets the usernotes on a particular user.
Name of the subreddit to create the note in
Username to fetch notes of
Promise which resolves to an array of notes or rejects on error
Saves usernotes from a Usernotes
instance to a subreddit.
Name of the subreddit to save notes to
Object containing all the subreddit's notes
Wiki revision reason to send
Promise which resolves on success or rejects on error
Generated using TypeDoc
A client class for interfacing with Toolbox functionality and stored data from within the Devvit platform. Wraps the Reddit API client provided in Devvit events and provides methods to perform various actions.
Example