MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / updateMessage

Function updateMessage

packages/integration-discord/src/utils/linen.ts:183–196  ·  view source on GitHub ↗
({
  id,
  body,
}: {
  id: string;
  body: string;
})

Source from the content-addressed store, hash-verified

181}
182// TODO: call message services instead
183export async function updateMessage({
184 id,
185 body,
186}: {
187 id: string;
188 body: string;
189}) {
190 await prisma.messages.update({
191 where: { id },
192 data: {
193 body,
194 },
195 });
196}
197
198export async function setMessageExternalId(id: string, externalId: string) {
199 await prisma.messages.update({

Callers 1

onMessageUpdateFunction · 0.90

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected