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

Method updateMessageSafe

src/runtime/adapters/slack.ts:592–605  ·  view source on GitHub ↗
(
    client: any,
    route: SlackRoute,
    ts: string,
    text: string,
  )

Source from the content-addressed store, hash-verified

590 }
591
592 private async updateMessageSafe(
593 client: any,
594 route: SlackRoute,
595 ts: string,
596 text: string,
597 ): Promise<void> {
598 try {
599 await this.updateWithRetry(client, route, ts, text);
600 } catch (err) {
601 console.error("[Slack] Failed to update message:", err);
602 await this.deleteMessageSafe(client, route, ts);
603 await this.sendSafe(client, route, text);
604 }
605 }
606
607 private async updateWithRetry(
608 client: any,

Callers 2

sendLongMessageMethod · 0.95
sendOrUpdateSafeMethod · 0.95

Calls 3

updateWithRetryMethod · 0.95
deleteMessageSafeMethod · 0.95
sendSafeMethod · 0.95

Tested by

no test coverage detected