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

Function createDefaultMessageObject

apps/sim/app/api/tools/slack/utils.ts:38–49  ·  view source on GitHub ↗
(
  ts: string,
  text: string,
  channel: string
)

Source from the content-addressed store, hash-verified

36 * Creates a default message object when the API doesn't return one
37 */
38export function createDefaultMessageObject(
39 ts: string,
40 text: string,
41 channel: string
42): Record<string, any> {
43 return {
44 type: 'message',
45 ts,
46 text,
47 channel,
48 }
49}
50
51/**
52 * Formats the success response for a sent message

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected