interface AllSubscriptions extends DefaultSubscriptions, SubscriptionshandledException
Triggered when a reported Notice (report: true) is caught.
handledException: {
denial: Notice;
uuid: UUID;
source: FaultSource;
}Inherited from:DefaultSubscriptions
interactionDispatched
Triggered once per interaction dispatch, after the handler chain settles.
interactionDispatched: {
routeId: string;
interactionId: string;
kind: `${InteractionRoutes}`;
outcome: DispatchOutcome;
fallback: boolean;
durationMs: number;
queuedMs: number;
}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 publishes nothing, since the callback succeeded and carries no message to name.
responseAttempted: { routeId: string; interactionId: string; method: WriteMethod; outcome: ResponseOutcome; durationMs: number; messageId: string | null; error?: Error; }Inherited from:DefaultSubscriptions
unhandledInteractionError
Triggered when an interaction dispatch throws past the fault boundary.
unhandledInteractionError: {
error: Error;
}Inherited from:DefaultSubscriptions
unknownException
Triggered when an unhandled exception (a raw non-Notice throw) occurs.