|
|
@@ -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',
|
|
|
},
|
|
|
],
|
|
|
},
|