MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / setThreadExternalId

Function setThreadExternalId

packages/integration-discord/src/utils/linen.ts:155–160  ·  view source on GitHub ↗
(id: string, externalId: string)

Source from the content-addressed store, hash-verified

153}
154
155export async function setThreadExternalId(id: string, externalId: string) {
156 await prisma.threads.update({
157 where: { id },
158 data: { externalThreadId: externalId },
159 });
160}
161
162export async function findMessageByChannelIdAndExternalId({
163 channelId,

Callers 3

processNewThreadFunction · 0.90
processNewMessageFunction · 0.90

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected