MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / sendMessage

Method sendMessage

src/runtime/adapters/slack.ts:117–121  ·  view source on GitHub ↗

* Public method: send a message to a specific Slack channel/DM. * channelId formats: * - slack-dm- - * - slack-thread- - -

(channelId: string, text: string)

Source from the content-addressed store, hash-verified

115 * - slack-dm-<teamId>-<channelId>
116 * - slack-thread-<teamId>-<channel>-<threadTs>
117 */
118 async sendMessage(channelId: string, text: string): Promise<void> {
119 if (!this.app) throw new Error("[Slack] App not initialized");
120 const route = this.parseChannelId(channelId);
121 await this.sendLongMessage(this.app.client, route, text);
122 }
123
124 // -------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

parseChannelIdMethod · 0.95
sendLongMessageMethod · 0.95

Tested by

no test coverage detected