zahmis 5 лет назад
Родитель
Сommit
1dad140e8c
1 измененных файлов с 15 добавлено и 6 удалено
  1. 15 6
      src/server/service/bolt.js

+ 15 - 6
src/server/service/bolt.js

@@ -107,13 +107,22 @@ class BoltService {
         await this.client.chat.postEphemeral({
           channel: this.channelId,
           user: this.userId,
-          blocks: [{
-            type: 'section',
-            text: {
-              type: 'mrkdwn',
-              text: `${resultPaths.join('\n')}`,
+          blocks: [
+            {
+              type: 'section',
+              text: {
+                type: 'mrkdwn',
+                text: '*検索結果 10 件',
+              },
             },
-          }],
+            {
+              type: 'section',
+              text: {
+                type: 'mrkdwn',
+                text: `${resultPaths.join('\n')}`,
+              },
+            },
+          ],
         });
       }
       catch {