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

Merge pull request #3430 from weseek/imprv/gw4940-add-abutton-for-interactive-message

Imprv/gw4940 add a button for interactive messages
Yuki Takei 5 лет назад
Родитель
Сommit
bcb9cd0df6
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      src/server/service/bolt.js

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

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