2
0
kaori 5 жил өмнө
parent
commit
42558ec9eb

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

@@ -104,6 +104,12 @@ class BoltService {
       }
     });
 
+    this.bolt.action('button_click', async({ body, ack, say }) => {
+      // Acknowledge the action
+      await ack();
+      await say('clicked the button');
+    });
+
   }
 
   notCommand(command) {
@@ -169,6 +175,7 @@ class BoltService {
                   text: '検索結果をこのチャンネルに共有する',
                 },
                 style: 'primary',
+                action_id: 'button_click',
               },
             ],
           },