moderator-toolbox-nxg-for-reddit / modules/historybutton/schema

modules/historybutton/schema

Interfaces

CommentHistoryData

Defined in: extension/data/modules/historybutton/schema.ts:24

Aggregated comment history for a user, broken down by subreddit and linked domain.

Properties

linkDomains

linkDomains: Record<string, { count: number; }>

Defined in: extension/data/modules/historybutton/schema.ts:30

External domains linked in comment bodies.

subreddits

subreddits: Record<string, number>

Defined in: extension/data/modules/historybutton/schema.ts:28

Comment counts keyed by subreddit.

total

total: number

Defined in: extension/data/modules/historybutton/schema.ts:26

Total number of comments retrieved.


SubmissionHistoryData

Defined in: extension/data/modules/historybutton/schema.ts:12

Aggregated submission history for a user, broken down by domain and subreddit.

Properties

domains

domains: Record<string, { count: number; }>

Defined in: extension/data/modules/historybutton/schema.ts:16

Submission counts keyed by submission domain.

subreddits

subreddits: Record<string, { count: number; karma: number; }>

Defined in: extension/data/modules/historybutton/schema.ts:18

Submission counts and total karma keyed by subreddit.

textLinkDomains

textLinkDomains: Record<string, { count: number; }>

Defined in: extension/data/modules/historybutton/schema.ts:20

External domains linked in selfpost bodies, keyed by hostname.

total

total: number

Defined in: extension/data/modules/historybutton/schema.ts:14

Total number of submissions retrieved.


UserInfo

Defined in: extension/data/modules/historybutton/schema.ts:4

Basic Reddit account info for a user.

Properties

commentKarma

commentKarma: number

Defined in: extension/data/modules/historybutton/schema.ts:8

createdAt

createdAt: Date

Defined in: extension/data/modules/historybutton/schema.ts:6

Account creation date; pass through util/data/time!niceDateDiff for a human-readable age.

submissionKarma

submissionKarma: number

Defined in: extension/data/modules/historybutton/schema.ts:7