Skip to main content
Defined in: core/triggers.ts:47 A trigger that matches on the inbound kind (ctx.type) instead of the body. Build one with typeTrigger or use the exported constants.

Properties

kind

Defined in: core/triggers.ts:48

types

Defined in: core/triggers.ts:50 The ctx.type values this trigger accepts. An empty list never matches.

scope?

Defined in: core/triggers.ts:52 Restrict to DMs or groups, like TriggerObject.scope. Default 'all'.

label?

Defined in: core/triggers.ts:54 Human-readable name, for logs and debugging only.