interface UserMentionedData

Carried by a user_mentioned notification, sent to a user @mentioned in a comment, a dump, a playlist's description or a chat message, or to every user by a chat message's @everyone. Its DumpRef is the dump's, or the comment's dump's; its PlaylistRef the playlist's.

Properties

contextType: "comment" | "dump" | "playlist" | "chat"
contextId: string

The id of the comment, dump, playlist or chat message.

The title of the dump or playlist, or of the dump a comment is under; empty for the chat.

optional
dumpId: string

Set only for a comment. It names the dump the comment is under, which the notification's link opens.

optional
everyone: true

Set when the user was reached by @everyone rather than by name. A message naming them as well notifies them once, by name.

Usage

import { type UserMentionedData } from "shared/notification.ts";