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

Function parseMessage

packages/integration-discord/src/utils/parse.ts:80–89  ·  view source on GitHub ↗
(
  message: Pick<Message, 'content' | 'attachments' | 'id'>
)

Source from the content-addressed store, hash-verified

78};
79
80export const parseMessage = (
81 message: Pick<Message, 'content' | 'attachments' | 'id'>
82): LinenMessage => {
83 return {
84 body: [message.content, ...message.attachments.map((a) => a.url)].join(
85 '\n'
86 ),
87 externalMessageId: message.id,
88 };
89};

Callers 2

onMessageCreateFunction · 0.90
onMessageUpdateFunction · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected