MCPcopy Index your code
hub / github.com/simstudioai/sim / formatMessageSuccessResponse

Function formatMessageSuccessResponse

apps/sim/app/api/tools/slack/utils.ts:54–68  ·  view source on GitHub ↗
(
  data: any,
  text: string
)

Source from the content-addressed store, hash-verified

52 * Formats the success response for a sent message
53 */
54export function formatMessageSuccessResponse(
55 data: any,
56 text: string
57): {
58 message: any
59 ts: string
60 channel: string
61} {
62 const messageObj = data.message || createDefaultMessageObject(data.ts, text, data.channel)
63 return {
64 message: messageObj,
65 ts: data.ts,
66 channel: data.channel,
67 }
68}
69
70/**
71 * Uploads files to Slack and returns the uploaded file IDs

Callers 1

sendSlackMessageFunction · 0.85

Calls 1

Tested by

no test coverage detected