OptionalcontextPermalink to the item the note was left in response to
OptionalmoderatorThe username of the moderator who left the note, defaulting to the app user
OptionalnoteThe key of the note type of this note. To get information about
corresponding note type (its label text and color information), get the
subreddit's Toolbox configuration in a SubredditConfig
instance,then pass this value to SubredditConfig.getNoteType.
const toolbox = new ToolboxClient(reddit);
const subreddit = 'mildlyinteresting';
// Acquire a note somehow
const usernotes = toolbox.getUsernotes(subreddit);
const note = usernotes.get('eritbh')[0];
// Look up information about the type of this note
const subConfig = toolbox.getConfig(subreddit);
const {color, text} = subConfig.getNoteType(note.noteType);
The text of the note
OptionaltimestampThe date and time the note was left, defaulting to the current time
The name of the user this note is attached to
Details about a newly created usernote