(
client: any,
route: SlackRoute,
ts: string,
text: string,
)
| 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, |
no test coverage detected