MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / extractErrorMessage

Function extractErrorMessage

biko/biko.ts:75–79  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

73
74function normalizeId(value: unknown): string {
75 if (value === null || value === undefined) return "";
76 if (typeof value === "bigint") return value.toString();
77 if (typeof value === "object") {
78 const maybeValue = value as Record<string, unknown>;
79 return normalizeId(
80 maybeValue.userId ??
81 maybeValue.channelId ??
82 maybeValue.chatId ??

Callers 3

resolveChatTargetFunction · 0.70
resolveSourceUserFunction · 0.70
BikoPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected