MCPcopy Create free account
hub / github.com/AnswerOverflow/AnswerOverflow / addServerToUserServerCache

Function addServerToUserServerCache

packages/core/src/auth.ts:652–662  ·  view source on GitHub ↗
(
		opts: DiscordApiCallOpts & { server: DiscordAPIServerSchema },
	)

Source from the content-addressed store, hash-verified

650 }
651
652 export async function addServerToUserServerCache(
653 opts: DiscordApiCallOpts & { server: DiscordAPIServerSchema },
654 ) {
655 const cachedServers = await getUserServers(opts);
656 if (cachedServers) {
657 await updateUserServersCache(opts.accessToken, [
658 ...cachedServers,
659 opts.server,
660 ]);
661 }
662 }
663
664 /*
665 * Discord User

Callers

nothing calls this directly

Calls 2

getUserServersFunction · 0.85
updateUserServersCacheFunction · 0.85

Tested by

no test coverage detected