interface AllSubscriptions extends DefaultSubscriptions, SubscriptionscommandsDeployed
Triggered after each command deploy, including the redeploy after a hot reload.
readonly commandsDeployed: { readonly global: readonly APIApplicationCommand[]; readonly guilds: Readonly<Record<string, readonly APIApplicationCommand[]>>; }Inherited from:DefaultSubscriptions
handledException
Triggered when a reported Notice (report: true) is caught.
readonly handledException: { readonly denial: Notice; readonly uuid: UUID; readonly routeId: string; readonly source: FaultSource; }Inherited from:DefaultSubscriptions
interactionDispatched
Triggered once per interaction dispatch, after the handler chain settles.
readonly interactionDispatched: { readonly routeId: string; readonly interactionId: string; readonly kind: `${InteractionKind}`; readonly outcome: DispatchOutcome; readonly fallback: boolean; readonly durationMs: number; readonly 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.
readonly responseAttempted: ResponseAttemptInherited from:DefaultSubscriptions
unhandledInteractionError
Triggered when an interaction dispatch throws past the fault boundary.
readonly unhandledInteractionError: { readonly error: Error; }Inherited from:DefaultSubscriptions
unknownException
Triggered when an unhandled exception (a raw non-Notice throw) occurs.
Inherited from:DefaultSubscriptions