* Public method: send a message to a specific Slack channel/DM. * channelId formats: * - slack-dm- - * - slack-thread- - -
(channelId: string, text: string)
| 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 | // ------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected