Private
usersA mapping of usernames to notes on the given user.
Adds a new usernote to the collection.
Details about the usernote to create
Serializes the usernotes data for writing back to the wiki. This method
returns an object; you probably want toString
instead.
Object which can be serialized to JSON and written as the
contents of the usernotes
wiki page
Stringifies the usernotes data for writing back to the wiki.
Optional
indent: string | numberPassed as the third argument of JSON.stringify
. Useful
for debugging; however, because wiki space is limited, never provide this
parameter when actually saving notes to the wiki.
JSON string which can be saved as the contents of the
usernotes
wiki page
Generated using TypeDoc
A class that interfaces with the raw contents of a subreddit's
usernotes
wiki page, automatically upgrading old storage schemas to the current version and providing methods to manipulate and reserialize the notes back for writing back to the wiki.