SHARDWIRE
ReferenceBridge APIs

AppBridgeMetricsHooks

Reference for `AppBridgeMetricsHooks`, exported as part of the public Shardwire surface.

interface exported from src/discord/types.ts.

Summary

Reference for AppBridgeMetricsHooks, exported as part of the public Shardwire surface.

Signature

export interface AppBridgeMetricsHooks {
	onActionComplete?: (meta: {
		name: BotActionName;
		requestId: string;
		durationMs: number;
		ok: boolean;
		errorCode?: string;
		/** Present when Discord returned HTTP 429 or similar retryable signals. */
		retryAfterMs?: number;
		discordStatus?: number;
		discordCode?: number;
	}) => void;
}

Structure

On this page