Skip to content
mercury framework
GitHub

Notifier

Notifier = object

Defined in: types/channel-types/index.ts:218

Proactive, out-of-band delivery — the slice the cron layer depends on.

notify(userId, text): Promise<{ sessionKey: string; }>

Defined in: types/channel-types/index.ts:220

DMs userId (an opaque id the provider knows how to address). Returns the session key of the conversation the message landed in, so a reply continues that same conversation.

string

string

Promise<{ sessionKey: string; }>