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

Function deleteMessageEvent

apps/web/services/slack/webhooks/webhook.test.ts:58–103  ·  view source on GitHub ↗
({
  team_id,
  ts = generateRandomDate(),
  channel_id,
}: {
  team_id: string;
  ts: string;
  channel_id: string;
})

Source from the content-addressed store, hash-verified

56});
57
58const deleteMessageEvent = ({
59 team_id,
60 ts = generateRandomDate(),
61 channel_id,
62}: {
63 team_id: string;
64 ts: string;
65 channel_id: string;
66}) => ({
67 token: v4(),
68 team_id,
69 api_app_id: v4(),
70 event: {
71 type: 'message',
72 subtype: 'message_deleted',
73 previous_message: {
74 client_msg_id: v4(),
75 type: 'message',
76 text: 'yet another test',
77 user: v4(),
78 ts,
79 team: team_id,
80 blocks: [],
81 },
82 channel: channel_id,
83 hidden: true,
84 deleted_ts: ts,
85 event_ts: generateRandomDate(),
86 ts: generateRandomDate(),
87 channel_type: 'channel',
88 },
89 type: 'event_callback',
90 event_id: v4(),
91 event_time: 1651046639,
92 authorizations: [
93 {
94 enterprise_id: null,
95 team_id,
96 user_id: v4(),
97 is_bot: false,
98 is_enterprise_install: false,
99 },
100 ],
101 is_ext_shared_channel: false,
102 event_context: v4(),
103});
104
105const changeMessageEvent = ({
106 team_id,

Callers 1

webhook.test.tsFile · 0.85

Calls 1

generateRandomDateFunction · 0.90

Tested by

no test coverage detected