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

Function getDisplayName

shift/shift.ts:440–446  ·  view source on GitHub ↗
(entity: any)

Source from the content-addressed store, hash-verified

438 if ("value" in id && id.value !== undefined && id.value !== null) {
439 return String(id.value);
440 }
441 if (typeof id.toString === "function") {
442 return id.toString();
443 }
444 }
445 if (typeof id === "bigint") {
446 return id.toString();
447 }
448 return String(id);
449}

Callers 1

ShiftPluginClass · 0.70

Calls 1

htmlEscapeFunction · 0.70

Tested by

no test coverage detected