Просмотр исходного кода

added a button to share the results

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

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

@@ -116,6 +116,21 @@ class BoltService {
                 text: `${resultPaths.join('\n')}`,
               },
             },
+            {
+              type: 'actions',
+              elements: [
+                {
+                  type: 'button',
+                  text: {
+                    type: 'plain_text',
+                    emoji: true,
+                    text: '検索結果をこのチャンネルに共有する',
+                  },
+                  style: 'primary',
+                  value: 'click_me_123',
+                },
+              ],
+            },
           ],
         });
       }