moderator-toolbox-nxg-for-reddit / util/reddit/modActions

util/reddit/modActions

Type Aliases

ActionFamily

ActionFamily = "approval" | "remove" | "ban" | "other"

Defined in: extension/data/util/reddit/modActions.ts:4

Broad category of a mod action, used to apply row coloring.

Variables

actionFamily

const actionFamily: Record<string, ActionFamily>

Defined in: extension/data/util/reddit/modActions.ts:37

Maps raw Reddit mod-log action strings to their broad ActionFamily category. Actions not listed here fall into the 'other' family.


actionLabels

const actionLabels: Record<string, string>

Defined in: extension/data/util/reddit/modActions.ts:10

Maps raw Reddit mod-log action strings to human-readable labels. Falls back to the raw action string for unlisted actions.