Skip to content

Commit 1caff80

Browse files
nateberkopecclaude
andcommitted
Format archive download link in Slack message
Use mrkdwn block with clickable link instead of raw URL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7053826 commit 1caff80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/handlers/messageHandler.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ class MessageHandler {
3434
try {
3535
const url = await this.exportUrlService.generateDownloadUrl();
3636
await say({
37+
blocks: [
38+
{
39+
type: 'section',
40+
text: {
41+
type: 'mrkdwn',
42+
text: `:package: <${url}|Download the latest Slack archive export>\n_This link is valid for 7 days._`
43+
}
44+
}
45+
],
3746
text: `Here is the latest Slack archive export (link valid for 7 days): ${url}`,
3847
thread_ts: message.ts
3948
});

0 commit comments

Comments
 (0)