moderator-toolbox-nxg-for-reddit / modules/usernotes/csvExport

modules/usernotes/csvExport

Functions

exportUsernotesCsv()

exportUsernotesCsv(subreddit, users): void

Defined in: extension/data/modules/usernotes/csvExport.ts:19

Generates a CSV file from all usernotes for a subreddit and triggers a browser download. Every note is exported, including archived ones, with their status and attribution in dedicated columns.

Parameters

subreddit

string

Subreddit name, used in the downloaded filename.

users

UsernotesUser[]

All users whose notes should be included.

Returns

void