Skip to main content

ModAction

@devvit/reddit v0.15.5-dev


Interface: ModAction

Properties​

createdAt​

createdAt: Date

When the action took place.


description?​

optional description?: string

The string "Page modmail-stats edited: Daily update of the modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is made up of description and details. The "Page modmail-stats edited" is the "description".


details?​

optional details?: string

The string "Page modmail-stats edited: Daily update of the modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is made up of description and details. The "Daily update of the modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is the "details".


id​

id: string

A string like "ModAction_1b1af634-5b87-11f0-a4f1-4ddd27626cc4" identifying the ModAction.


moderatorId​

moderatorId: `t2_${string}`


moderatorName​

moderatorName: string

The username of the moderator.


subredditId​

subredditId: `t5_${string}`

The ID of the subreddit the action took place.


subredditName​

subredditName: string

The name of the subreddit the action took place.


target?​

optional target?: ModActionTarget

Some context of the affected item of the modaction.


type​

type: ModActionType

The type of the action. Think of what happened.