Skip to content
Interfacecorev0.14.0

AllSubscriptions

interface AllSubscriptions extends DefaultSubscriptions, Subscriptions

handledException

Triggered when a reported Notice (report: true) is caught.

readonly handledException: { readonly denial: Notice; readonly uuid: UUID; readonly dispatchId: string; readonly origin: string; readonly source: FaultSource; }

Inherited from:DefaultSubscriptions

interactionDispatching

Triggered once per interaction dispatch before plugin members, middleware, gates, and the handler run. It shares its dispatchId with the interactionDispatched that follows, which seedcord publishes only once the handler settles.

readonly interactionDispatching: Simplify<Pick<DefaultSubscriptions['interactionDispatched'], 'dispatchId' | 'routeId' | 'interactionId' | 'kind' | 'fallback'>>

Inherited from:DefaultSubscriptions

responseAttempted

Triggered on every write through the reply surface, several times per interaction. A write that throws reports here too, with outcome failed. A write that reaches Discord and then returns an unexpected shape skips the publish since the callback succeeded but the response doesn't include a message to name.

readonly responseAttempted: ResponseAttempt

Inherited from:DefaultSubscriptions

unhandledInteractionError

Triggered when an interaction dispatch throws past the fault boundary.

readonly unhandledInteractionError: { readonly error: Error; readonly interactionId: string; }

Inherited from:DefaultSubscriptions